TestProject Forum
Powered by leading experts in the test automation community

How to write css selector for preceding, following, ancestor?

How to write css selector for preceding, following, ancestor ? Please share me tutorial for learning css selector

Dont think its possible to have a preceding selector:

But you can get ancestor easily with xpath(’…’);