XPath is used to navigate through elements and attributes in an XML document.
XPath is a really good way to navigate your site when there are no IDs on elements that you need to work with or is near the element you want to work with.
Note: Web browsers were never designed to handle large amounts of XPath so this means that your scripts may run slowly. You will notice this especially in Internet Explorer.
Locating by Id
Locating by Name
Locating by XPath
Locating Hyperlinks by Link Text
Locating by CSS