CSS selectors

We saw in the previous section that XPath selectors can offer your tests a lot of flexibility to find elements on the page.

Note

It must be noted that Selenium IDE and Selenium RC uses Sizzle, the framework used for selectors in jQuery, to find elements on the page. Not all of these can be translated to work in Selenium WebDriver. When we come across items like this, it will be mentioned in that section.

Get Selenium 2 Testing Tools Beginner's Guide now with O’Reilly online learning.

O’Reilly members experience live online training, plus books, videos, and digital content from 200+ publishers.