2017年10月26日 星期四

WebDriver Element Locator


[WebDriver Element Locator]

  1. Open Firefox
  2. Install add-on from https://addons.mozilla.org/en-US/firefox/addon/element-locator-for-webdriv/


Usage:

  1. Launch Firefox, open the target URL (such as google)
  2. Put mouse on the web element, then Right
  3. Click, click [XPaths…] on the menu
  4. 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

沒有留言:

張貼留言

check_systemv1.1

 check_systemv1.1.bat 可用於電腦資產盤點 @echo off REM 後續命令使用的是:UTF-8編碼 chcp 65001 echo ***Thanks for your cooperation*** echo ***感謝你的合作*** timeout 1...