Thursday, December 22, 2016

How to verify xpath in chrome

Sometimes, I need to verify the xpath does be able to find the element I want.
Chrome
    F12 -> development mode
    Ctrl + f
    type in the xpath in the search text box
if anything is matched, it will be highlighted.

Or on the console, type
$x("your_xpath")

No comments:

Post a Comment