DEV Community

Julia Pottinger
Julia Pottinger

Posted on

1

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)

Billboard image

The Next Generation Developer Platform

Coherence is the first Platform-as-a-Service you can control. Unlike "black-box" platforms that are opinionated about the infra you can deploy, Coherence is powered by CNC, the open-source IaC framework, which offers limitless customization.

Learn more