Objective
The benefits are coming, and for the little friends who use Firefox, are you still worrying about locating elements?
Antiquity Artifact Selenium builder come, where won't point where, mom no longer worry about my positioning element problem! (But it's not everything, it's basically covered)
First, install selenium Builder
Search the add-ons in Firefox for Selenium builder. After installation as shown:
Second, direct application
1. Open the URL you want to test or open the plugin and enter the URL you want to test, as
2. Click to eject a popup window, such as:
注:如果你是直接在你要测的网页页面打开这个插件时,selenium builder会直接获取你要测的URL
3.点击record:
and then you can go where you don't order. Here's an example:
Third, practice cases
1. Baidu home page, click Baidu a bit, then click Login, once again click the account and password input box, let us look at the results
2.这里没有展开,点击展开后可以发现定位该元素的多种方法
直接选择你想要的方法复制粘贴即可,
不用的话直接关掉弹窗即可。
Selenium2+python Automation 8-seleniumbuilder Auxiliary positioning elements