Get Even More Visitors To Your Blog, Upgrade To A Business Listing >>

SOLVED: java-selenium xpath to find preceding node

user3346145:

I have below code




.
.
.





View only




Now I want to click on the check box near the 'View only ' text. I tried


//input[@type='checkbox']/following::td[contains(text(),'View only')]

but it clicks on the text not the check box. Any help would be appreciated



Posted in S.E.F
via StackOverflow & StackExchange Atomic Web Robots
This Question have been answered
HERE


This post first appeared on Stack Solved, please read the originial post: here

Share the post

SOLVED: java-selenium xpath to find preceding node

×

Subscribe to Stack Solved

Get updates delivered right to your inbox!

Thank you for your subscription

×