What is the css equivalent of following xpath? | Selenium Forum
M
Posted on 15/12/2015
Following is xpath: html/body/div[2]/div/div/div/div/div[2]/a[3]

[html]body div:nth-child(2) div div div div div:nth-child(3) a:nth-child(3) is not correct.

So,what is the css equivalent?

M
Replied on 16/12/2015

You can try below -
html > body > div:nth-of-type(2) > div > div > div > div > div:nth-of-type(2) > a:nth-of-type(3)


M
Replied on 17/12/2015

Thankz anupam.It works.


M
Replied on 17/12/2015

Great...
It was created through -

http://cssify.appspot.com/

Just give your xpath, and it will give you equivalent cssSelector.