Upgraded Selenium IDE

In Previous tutorial, we have discussed about the Enhanced version of Grid which is introduced in Selenium 4. In this section, we will discuss more about the upgraded version of Selenium IDE.

Objective:

  • Introduction to Selenium IDE
  • History of Selenium IDE
  • Upgraded Features of Selenium IDE
  • Backup Element Selector
  • Control Flow
  • Code Export

Introduction to Selenium IDE

Selenium IDE is nothing but an add-on which was available in Firefox only in earlier Version. It is the simple and easy tool in Selenium automation testing world. This is also called as Firefox add-on which acts like a Record and Play functionality.

If you want to learn more about the Selenium IDE, how it is working and processing our test cases, you can navigate to Selenium Java Tutorial by clicking here.

Once you are cleared on the operation of IDE, how it is working and processing the Test cases, you can resume your learning from here.

History of Selenium IDE

The original IDE ends in Aug 2017, when Mozilla published the Firefox 55 version. In Firefox 55, the add-ons are switched from Mozilla Specific XPI format to standardize Web Extension mechanism. For later version of Firefox version 55, Older IDE will not work. XPI is nothing but a cross platform compressed installation via Firefox suite.

The Selenium 4 IDE extension is available as Web Extension in browser which is also available as Electron APP. Electron APP is useful for tester to use debugging tool.

The new name of the IDE in selenium 4 is known as Selenium IDE TNG (The Next Generation).

In Selenium 4 version, Selenium IDE is upgraded, and many additional features are added also.

Upgraded Features in Selenium IDE:

  • For a better user experience, Selenium 4 improved the GUI of IDE.
  • In Selenium 4, a runner added in Selenium IDE which is known as SIDE aka Selenium IDE runner.
  • SIDE aka Selenium IDE runner is the advance features available in Selenium 4 which allows tester to execute .side project on a node.js platform. Addition to running in node.js platform it also enable tester to run the test cases in cross browsers in local or  Selenium Grid.
  • In Selenium 4, it improves the control flow mechanism through which testers / QAs can write advance logic using ‘While’ and ‘If’ condition.
  • In Selenium 4 IDE, we can export the test cases in the desired language like Java, C#, Python, .NET, JavaScript.
  • Addition to SIDE aka Selenium IDE runner, there is also another new CLI runner is introduced in Selenium 4. This is also based on node.js based. Earlier version CLI runner is based on HTML.
  • This helps testers to run the test cases in parallel mode. It also provides the information of passed & failed test cases and time required to run the test cases.
  • This IDE version is completely WebDriver based.
  • The Selenium 4 IDE extension is available as Web Extension in browser which is also available as Electron APP. Electron APP is useful for tester to use debugging tool.
  • Addition to Extension / Plugin, Selenium IDE also has below features in current version.
    • Backup element Selector
    • Control Flow
    • Code Export
Upgraded Selenium IDE

Let’s discuss the above features one by one.

Backup Element selector

From the name, you can guess the work of this features in Selenium 4. This feature will be useful in IDE if we have multiple locators for an element.

Are you confused why multiple locators will be there for an elements?

Let’s understand with a simple example.

We have written a test script and executed, and it passed with our current build. After some time some functionality has been updated and due to that some locators are changed.

Depending on the changes, our test case should fail as it will not find the current locators which is changed. This was happened only on previous version.

Now in Selenium 4 version, due to Backup Element Selector, this test cases will be passed without changing any code.

But how? What Backup Element Selector is doing? This question might come to your mind.

In current version, Selenium will keep backup all locators mentioned in IDE, and it will try each locators if it is changed until the element is found.  This is the biggest advantage of Selenium 4 IDE due to Backup Element Locators.

Control Flows

This feature in Selenium 4 IDE will help QAs to manage the order of execution with Flow management.

There are 2 types of Flow available.

  • Conditional
  • Loops

Conditional Flow will check the condition in statement and decide the next step based on the result of the conditional statement.

Loops will execute the certain statements for user defined certain number of time.

it improves the control flow mechanism through which testers / QAs can write advance logic using ‘While’ and ‘If’ condition.

Code Export

With this features of Selenium 4, User can export the test case from IDE and can import to WebDriver to execute. This is the advance features which was not available in earlier release of IDE.

To perform this task, you need to follow certain step.

  • Right Click on the Test / Suite
  • Select Export
  • Select the Language
  • Click on Export Button

Selenium 3 IDE can support below language and Framework to export.

LanguageFramework
C#NUnit, XUnit
JavaJUnit
JavaScriptMocha
PythonPyTest
RubyRSpec

Summary

  • For later version of Firefox version 55, Older IDE will not work. XPI is nothing but a cross platform compressed installation via Firefox suite.
  • The Selenium 4 IDE extension is available as Web Extension in browser which is also available as Electron APP. Electron APP is useful for tester to use debugging tool.
  • In Selenium 4, a runner added in Selenium IDE which is known as SIDE aka Selenium IDE runner.
  • In Selenium 4 IDE, we can export the test cases in the desired language like Java, C#, Python, .NET, JavaScript.
  • Code Export is the advance features which was not available in earlier release of IDE.
  • Selenium 4 IDE improves the control flow mechanism through which testers / QAs can write advance logic using ‘While’ and ‘If’ condition.

Leave a Reply

Your email address will not be published. Required fields are marked *