Skip to main content

Testing the GA_Universe App using the Selenium IDE

Selenium IDE is a plugin that records and plays back all the user interactions. Each user action is recorded and can be played back to ensure that the application runs smoothly.

Prerequisites

  • Download and install browsers that support Selenium IDE (Chrome, Firefox, Edge)

  • Install the Selenium IDE extension for each browser (Chrome, Firefox, Edge)

How to Create and Run an Automated Test

Let’s create the first automated test by using Selenium IDE.

  1. Open your desired browser and then click on Selenium IDE on the browser toolbar.

Testing IDE 1

  1. Now select the option Create a New Project.

Testing IDE 2

  1. Now name your project and click on the OK button. We are naming it E-commerce App.

Testing IDE 3

  1. Click on the Record button on the top right corner of the page. Now, enter the URL of your application and click on the Start Recording button.

Testing IDE 4

Testing IDE 5

This will open up the application in a new browser window. The Selenium IDE will record all the steps you perform in this window.

  1. Enter your Email and password, and then click on the Login button.

Testing IDE 6

  1. After you have successfully logged in, click on the search bar and enter any product name, here I am taking “Caramel“ and then click on Search icon.

Testing IDE 7

  1. Now, click on the Profile Name and then click on the Logout button.

  2. Click on the close icon on the browser window and you will see the Selenium IDE screen.

Testing IDE 8

  1. Click on the record icon to stop recording and give a name to your first test and then click on the OK button.

Testing IDE 9

  1. Now, you can click on the Record button to play the recorded script.

Testing IDE 10

All the passed test will be marked as green as shown in the picture below:

Testing IDE 11

Changing a Test Target

If for some reason, your test run resulted in a failure, then you can change the value of the locator.

Testing IDE 12

  1. Click on the failed test step.

Testing IDE 13

  1. Now, click on the Target, and choose the xpath id or other locators.

Testing IDE 14

  1. Now, run the test again.

Testing IDE 15

You can also follow these steps for elements that require more time to find and are identified using a secondary locator.