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

  • 1 Replies
  • 1661 Views
How to write css selector for preceding, following, ancestor ?  Please share me tutorial for learning css selector
« Last Edit: October 04, 2016, 19:21:30 pm by poovaraj »

*

Haim

  • *
  • 10
Re: How to write css selector for preceding, following, ancestor ?
« Reply #1 on: October 05, 2016, 10:26:33 am »
Dont think its possible to have a preceding selector:

http://stackoverflow.com/questions/1817792/is-there-a-previous-sibling-css-selector

But you can get ancestor easily with xpath('..');

 

Sitemap 1 2 3 4 5 6 7 8