How to verify an XPath expression in Chrome Developers tool or Firefox's Firebug? -
how can verify xpath?
i using chrome developers tool inspect elements , form xpath. verify using chrome plugin xpath checker, not give me result. better way verify xpath.
i have tried using firebug inspect bug , using firepath verify. firepath verify xpath.
my last option use selenium webdriver confirm xpath.
chrome
this can achieved 3 different approaches (see blog article here more details):
- search in
elements
panel below - execute
$x()
,$$()
inconsole
panel, shown in lawrence's answer - third party extensions (not necessary in of cases, overkill)
here how search xpath in elements
panel:
- press f12 open chrome developer tool
- in "elements" panel, press ctrl+f
- in search box, type in xpath or css selector, if elements found, highlighted in yellow.
Comments
Post a Comment