Tuesday, 3 September 2013

How to do XPath validation ?


1| Access your web page. e.g., 'http://seleniumworks.blogspot.in/'
2| Press F12 key.
3| Again, press Esc key.
4| Enter your xpath inside $x
$x(your xpath)
e.g.,
$x("//div[@class='navbar section']")
5| Press Enter key for output.


2 comments: