DEV Community

Julia Pottinger
Julia Pottinger

Posted on

Element Locator Strategy using CSS - Write Dynamic CSS Selectors

CSS Selectors are faster than XPATH and are easier to read. Having durable, well-designed CSS selectors to target elements in your web application is very important and allows for more robust tests. CSS Selectors are also important in development to apply appropriate styles and functionality.

In this video I walk you through the different syntax that CSS offers for id, classname, attributes, element state and element positions.

At the end of this video you will be able to create well-designed, durable and dynamic CSS Selectors for your application or test automation.

Top comments (0)