(i) Selenium IDE
Firefox is a plugin that helps us understand the testing framework. Search for downloads in the add-ons, the results of the general search in the first few are not, to point that more to see, find this:
After installation, the browser toolbar will have:
After installing, click on this tab to start:
1: Control case Run speed
2: Pause and resume use case execution
3: Single Step: You can run one row of commands in a use case.
First enter the URL to be recorded in the Address bar, and then enter the appropriate URL in the browser, for example, we take Baidu as an example:
First step: Fill in the URL
Step two: Firefox browser into Baidu
Step Three:
Click the red dot on the right side of the Selenium IDE, then go to the page to click the Search box, enter selenium, and click Search. Then click on the Selenium IDE's red Dot to end the recording, and you can see that the Selenium IDE has a record:
If you want to clear the re-recording, you can right-click there and select Clear all.
Fourth Step:
By following the steps, you can see the selenium IDE gives you the auto-generated unittest use case. It looks very big on the writing, but ... Running a class is hard to succeed, but we can refer to the structure it writes, which is the standard structure that we will write about later.
Interested friends can look into this tool.
(ii) Selenium Builder
It is also a plugin for Firefox:
Starting mode
After the right mouse button is installed
Click to open:
Use
Like the Selenium IDE, the browser is on the page you want to manipulate and should be the URL of the current page when you open it. Then click on the record and you will notice that the browser tag will change:
Before clicking on the record:
After clicking on the record:
Then perform the operation on the current page, and in Selenium builder there will be all of your clicked positions:
This tool is very convenient for locating, and can be used to copy all kinds of positioning methods directly when writing.
Public search " Automated test practice" or scan the QR code below to add attention ~ ~ ~
"Selenium2 Python Automation Test" (--selenium) Tools Introduction