I tried using Selenium IDE to automate browser testing
Hello.
This is Hase from the development team.
This time, I will introduce a tool called Selenium IDE that automates browser testing.
What is Selenium IDE?
Selenium IDE is a tool for automating web browser testing and is available as a FireFox add-on.
In addition to Selenium IDE, there is a library that can be tested from a program called Selenium WebDriver.
Source: Various introductions to Selenium IDE
Although it is provided as a FireFox add-on, you can also use this tool with other browsers such as Chrome and Internet Explorer.
Next time I will introduce how to use it with Chrome and Internet Explorer.
introduction
This time I will be using FireFox as the browser, so I would like to proceed with the discussion assuming that FireFox is installed on your PC.
here and click "+ Add to Firefox" to install Selenium IDE.
That's all there is to install.
It's so easy!
How to use
As an example, I would like to create the following test.
1. Access https://www.yahoo.co.jp/
2. Search for "biyondo Co., Ltd."
3. The search results will display "Isn't it Beyond Co., Ltd.?"
Start Selenium IDE
Select Menu Bar → Tools → Selenium IDE to start it.
Start recording
Activate the red circle (record button) on the top right and start recording.
operate the browser
Operate your browser as usual.
1. Access https://www.yahoo.co.jp/
2. Enter “biyondo Co., Ltd.” and search.
The operations will be recorded in Selenium IDE.
We want to confirm that "Are you Beyond Co., Ltd.?" is displayed, so
drag the wording, right-click, and select "verifyText...".
Now you can test that it is displayed.
End recording
You can end recording by clicking the red circle (recording button) on the top right again.
execute
Play the test you created.
When you press the play button (▶), the browser will start automatically.
It turns green when the test completes successfully.
On the other hand, if the values are different and an error occurs, it will turn red as shown below.
*By changing the Verify Text value to "Are you Beyond Co., Ltd.?", the values did not match and an error occurred.
At the end
This time, we created the test by operating the browser,
but of course it is also possible to create the test by directly entering commands without operating the browser.
For a list of commands and how to use them, please
read the official documentation
That's all.