Selenium3 automated test [9] Selenium-IDE operation

(1) Click the button in the toolbar of the FireFox browser to open Selenium-IDE.
In the pop-up Selenium-IDE plug-in page, you can see:
 Record a new test in a new project: record a script to a new project;
 Open an existing project: open an existing project;
 Create a new project: create New project;
 Close Selenium IDE: Close Selenium IDE.
Selenium3 automated test [9] Selenium-IDE operation

(2) Click Record a new test in a new project, the pop-up page needs to be written in the name of the project, here is the test bing search home page as an example, so enter the name of the project as [bing], and then click [OK], as the picture shows.
Selenium3 automated test [9] Selenium-IDE operation
(3) Set the Base URL of the project, the bing homepage is https://cn.bing.com, click [START RECORDING] to start recording, as shown in the figure.
Selenium3 automated test [9] Selenium-IDE operation
(4) After recording is started, the address of the tested object (Bing search) provided above will be opened. Take bing search as an example, perform the following operations on the bing homepage (as shown in the figure):
 enter Bella;
 click the search button;
 close the browser.
Selenium3 automated test [9] Selenium-IDE operation
(5) Click the red stop button in Selenium-IDE to stop recording, as shown in the figure.
Selenium3 automated test [9] Selenium-IDE operation
(6) After clicking the stop button, a window for setting test will pop up, set the test name, here is set to Bing_Search, and click [OK].
Selenium3 automated test [9] Selenium-IDE operation
(7) As shown in the figure, you can see the script recorded by Selenium-IDE. In fact, through the recorded content, you can intuitively understand what was operated during the recording process.
Selenium3 automated test [9] Selenium-IDE operation

Selenium3 automated test [9] Selenium-IDE operation
(8) Click the icon of Run all tests or Run current test to run the recorded test cases. After the test case is passed, the color turns to green, and the running result can be seen in the lower part, as shown in the figure.
Selenium3 automated test [9] Selenium-IDE operation

Guess you like

Origin blog.51cto.com/starpoint/2553182