Automation locators - css vs xpath

Great point above which reflect what I thought might be the case.
I.e. The efficiency of the css might be marginally faster but if your limited by the speed the of ui then you might not even see the benefit.

In some cases I think the preference was literally down to the notation/syntax.

I.e. .classname vs //*[class=“class name”]

2 Likes