☰ See All Chapters |
How to search in google using selenium IDE
In this tutorial you will learn the steps use selenium IDE to record the scenario like open www.google.com and type calculator in the search box then click on Search button. After google calculator is opened, perform some calculation.
Step 1: Launch Firefox and start recording
Open Firefox, go to tools, and click on selenium IDE.
Select Record a new test in a new project
Enter Project Name and click Ok
Enter the application Base URL and click on START RECORDING
As soon as you click on START RECORDING, browser opens with the URL https://www.google.com/
Step 2: Perform or execute the actions on the browser
Perform or execute the actions on the browser. Type calculator in the search box then click on Search button. Perform some calculation. Now once the recording is completed, restore or maximize the IDE then click on the red button to stop the recording.
By default the selenium IDE will give the recorded actions in two formats.
Table: Table contains all the recorded actions in a tabular format.
Source: Source contains the same recorded actions in the form of source code (By default HTML).
When recording is stopped, new dialog opens, enter the Test Name and click Ok
Step 3: Execute the recorded actions
To execute the recorded scripts we have two options.
Play current test cases.
Play entire test suite.
Click on Run current test, this will execute all set of actions, open https://www.google.com/, Type calculator in the search box then click on Search button. Perform some of 10 and 10.
Step 4: Adjust the synchronization
To maintain the synchronization make the execution speed slow by using the option fast--slow. Synchronization is to provide wait to the tool to maintain in-sync between both application and tool.
Step 5: Save the script
To save the recorded script we have the option like go to file, click on save test case as and save the test case in .side extension.
Step 6: Open Scripts
To open the recorded scripts go to the file click on open and open the desired scripts.
All Chapters