TestProject Forum

General => Selenium => Topic started by: poovaraj on October 04, 2016, 19:16:30 pm

Title: How to write css selector for preceding, following, ancestor ?
Post by: poovaraj on October 04, 2016, 19:16:30 pm
How to write css selector for preceding, following, ancestor ?  Please share me tutorial for learning css selector
Title: Re: How to write css selector for preceding, following, ancestor ?
Post by: Haim 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('..');