Selenium Tool

Mirosh_Kavinda
3 min readSep 21, 2022

--

What is Selenium?

Selenium is an open-source tool that automates web browsers. It provides a single interface that lets you write test scripts in programming languages like Ruby, Java, NodeJS, PHP, Perl, Python, and C#, among others.

Why do we use it?

Selenium automates web browsers. It is most famous for enabling rapid, repeatable web-app testing, allowing developers to ship new releases faster and confidently.

How To do system testing using selenium?

1. First, you need to install the selenium tool on your device

Install web extension to your web browser

Selenium download page: https://www.selenium.dev/selenium-ide/

Once installed the selenium extension is, the Selenium IDE appears on chrome extensions

When you click on selenium IDE, it will prompt below the window.

2. Recording a test:

a. Let’s first create a new test for a new project by choosing the “Record a new test in a new project” link on the welcome page

b. Provide a name for your project, in this example, we will call it a demo project.

c. Before recording, we must specify a valid URL.

d. Click the Start Recording button.

Clicking on “Start Recording” will send you to the Facebook page and start recording the user interactions

3. Save your Work

The user is at liberty to stop recording. All user actions are recorded and converted into a script.

To save everything you’ve just done in the IDE, click on hold in the top-right corner of the IDE. It will request from you a name and a location of where to save the project.

1. First you need to stop the Record using the Stop button in the figure

2. You need to give your test a name and click on the OK button.

4. Playback

In-browser: You can play tests back in the Selenium automation testing IDE by selecting the test you wish to play and clicking on the Play button.

5. Export Test to a file :

  1. First, you need to switch from the execution tab to the text tab

2. Click the drop-down and choose an export option from the left side sidebar in your test name. (in here ‘text1’)

3. You can export several ways your test script, So you can save your test according to your preference, and click on the Export button

5. choose a file location and click on the save button.

End of the story…..

--

--

No responses yet