[WebDriver Element Locator]
- Open Firefox
- Install add-on from https://addons.mozilla.org/en-US/firefox/addon/element-locator-for-webdriv/
Usage:
- Launch Firefox, open the target URL (such as google)
- Put mouse on the web element, then Right
- Click, click [XPaths…] on the menu
- Suggested XPath will be shown in the list, pick one(Left Click) and it will be copied directly to the clipboard
這個 Firefox add-on WebDriver Element Locator 比較好用
它的element會分類,
另有打勾是的建議你用的locator id,
The mark "V" is identical (highly recommend),
"X" is duplicated (you may find more than one web element if you use the XPath).
Firebug
Firebug+FirePath and WebDriver Element Locator in one menu
沒有留言:
張貼留言