Role in Company: Senior Test Engineer
2. XPath seems to be preferred by some because browser tools can get them automatically for you
3. CSS selectors should be used instead, as they are less restrictive and shorter (less code) than XPath. In the workshop practical examples will be demonstrated and can be exercised by the participants, including some selectors that seem impossible to identify
When writing Selenium tests, you need to identify the page elements by using some kind of selectors. XPATH, although much more complicated than CSS, seems to be preferred by many. Either because testers have tools that automatically extract them, or because they seem to clearly specify the path of the element.
In this workshop i will go over the benefits of using CSS instead of XPATH. I will show a ton of examples, from the easiest and simplest, to the most complex or even impossible. The purpose of the workshop is to get hands-on experience with identifying the CSS selectors for a wide range of cases, which will lead to you dropping XPATH altogether.