2

I wrote a xpath for the following using tag name traversing login button

This is the xpath I wrote -

.//form[@class = 'form-horizontal']/div[3]/div/input

and it works fine but when I tried to write this in for CssSelector then its not working

form[class = 'form-horizontal']/div[3]/div/input

Am I doing correct? or traversing is not possible in CssSelector ?

1
form.form-horizontal > div:nth-child(3) > div > input

I suggest spending 20 minutes here

| improve this answer | |

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.