We learnt a lot in this chapter about locators. We have been able to use a large number of different methods to find the elements that are on a page. We have seen how to find elements using the easy methods like
name= to find elements and running queries against the DOM to find them using CSS selectors or XPath queries.
Specifically, we covered:
- Using Firebug to find the element attributes: In this section we were able to start using Firebug. This will become an invaluable tool for anyone that works with web applications. It has a very good mechanism for finding elements so you can work against them.
- Finding an element by ID: Elements can easily be found by the value of the ID attribute. This is the most common way to find elements and ...