×
☰ 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.

selenium-to-google-search-0
 

Select Record a new test in a new project

selenium-to-google-search-1
 

Enter Project Name and click Ok

selenium-to-google-search-2
 

Enter the application Base URL and click on START RECORDING

selenium-to-google-search-3
 

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.

  1. Table: Table contains all the recorded actions in a tabular format. 

  2. Source: Source contains the same recorded actions in the form of source code (By default HTML). 

selenium-to-google-search-4
 

When recording is stopped, new dialog opens, enter the Test Name and click Ok

selenium-to-google-search-5
 
selenium-to-google-search-6
 

Step 3: Execute the recorded actions

To execute the recorded scripts we have two options.

  1. Play current test cases. 

  2. Play entire test suite. 

selenium-to-google-search-7
 

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.

selenium-to-google-search-8
 

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.

selenium-to-google-search-9
 

Step 6: Open Scripts

To open the recorded scripts go to the file click on open and open the desired scripts.

selenium-to-google-search-10
 

All Chapters
Author