The new Selenium4 IDE is stronger, more complete, and better to use.

In a previous article, I introduced the Selenium4.0 update path, which mentioned the development of Selenium IDE.

  • Selenium 4 Java’s best testing framework
  • Selenium 4.0 Alpha update log
  • Selenium 4.0 Alpha update practices
  • JUnit 5 and Selenium Basics
  • JUnit 5 and Selenium Basics (ii)
  • JUnit 5 and Selenium Basics (3)

Selenium IDE support for Chrome is now available. It can be downloaded at: selen.dev /selenium-id…

Selenium IDE is known as a record and playback tool. It will now have the following richer and more advanced features:

  • New plug-in system. Any browser can easily insert new onesSelenium4 IDE. You will be able to have your own locator policy and Selenium IDE plug-in.

New CLI runner. It will be entirely based on NodeJS, rather than the older HTML-based runner, and will have the following features:

  • WebDriverPlay. The newSelenium4 IDEThe running program will be completely based onWebDriver.
  • Parallel execution. The new CLI runner will also support parallel test case execution and will provide useful information, such as time spent, passed and failed test cases.

The protagonist Selenium4 IDE

Early testers typically avoid automated testing using recording and replay tools such as Selenium IDE, preferring scripting frameworks such as Selenium Webdriver, WebDriverIO, Cypress, etc. After all, why not use these tools, which have proven to be much more effective and helpful for testing!

Despite the ease of use provided by Selenium IDE, it still has many problems. It does not support cross-browser testing, running parallel tests, and so on. This is why, when Selenium IDE development ceased to be updated in 2017, many testers were not sorry that Selenium IDE died.

However, this has recently changed as Selenium4 IDE has received renewed interest and increased usage. The reason is that Selenium4 IDE overcomes previous limitations and now supports cross-browser testing, parallel testing, script injection, debug debugging, CI/CD, and more!

Selenium IDE history Review

Launched in 2006, Selenium IDE is a recording and replay tool for developing Selenium test cases. Selenium IDE is easy to get started because it doesn’t require any special setup or basics. To get started with Selenium IDE for Selenium test automation, you just need to install extensions (or add-ons) for the appropriate browser. Selenium IDE provides a GUI for logging interactions with web sites.

Although Selenium IDE was previously only available for Firefox, it is now available for Chrome as well. The latest version of Selenium IDE is 3.17.0. You can download the Selenium IDE extension for Chrome and Firefox using the links below.

  • The Selenium IDE Chrome extension: chrome.google.com/webstore/de…
  • Selenium IDE Firefox plugin: addons.mozilla.org/en-US/firef…

Once the extension is installed, you can start recording tests. Interactions with the site are recorded and categorized into the following categories: commands, target objects, values, and instructions (optional).

Selenium4 Main features of the IDE

Selenium4 IDE is an easy-to-use tool that provides immediate feedback and allows you to run tests on any browser + operating system combination using the Selenium IDE SIDE file (or command line) runner.

Here are some key features:

  • Executing tests (and test suites) :Selenium4 IDEYou can execute specific tests or complete test suites containing a set of tests.
  • Cross-browser testing: It can be used for automatic browser testing as it can be usedSIDE fileThe runner performs cross-browser tests.
  • Debug: Set breakpoints and pause exceptions easily fromIDEDebug the test itself.
  • Rich command set:Selenium4 IDEMany commands are supported for handling assertions, inserting scripts, creating loops, and more.
  • Logical control:Selenium4 IDEHas an extensive command set that enables the control flow structure.if,if.. else,whileSuch commands help fromIDEPerform tests for conditional judgment.
  • Test case reuse: Running commands enables you to reuse a particular test case in another test case (or test suite).
  • SeleneseGrouping of commands:Selenium4 IDEsupportSeleneseCommand (orSeleniumCommand set), can run tests, a seriesSeleneseThe command forms a test script.
  • Easily modify and compare test cases – useSelenium4 IDEThe created test script is stored asJSONFile. This makes it easy to compare, modify, and review tests.

Our Selenium4 IDE tutorial, shown below, recorded a tutorial using Bing to search for FunTester, clicking on a link to go there.


{
  "id": "ab514091-68ca-4b4c-a232-587a0b82fcaa"."version": "2.0"."name": "FunTester"."url": "https://cn.bing.com"."tests": [{
    "id": "e34fd206-9ab8-4a6c-a543-0f80d1ba3fe9"."name": "FunTester"."commands": [{
      "id": "92e8a427-e37e-4c6b-88c4-718d4e6c606e"."comment": ""."command": "open"."target": "/"."targets": []."value": ""
    }, {
      "id": "780adf28-4694-4c22-bfd1-74e09bf80775"."comment": ""."command": "setWindowSize"."target": "1680x1027"."targets": []."value": ""
    }, {
      "id": "2d8284e8-8475-4d75-9740-b407d6317b95"."comment": ""."command": "click"."target": "id=sb_form_q"."targets": [["id=sb_form_q"."id"],
        ["name=q"."name"],
        ["css=#sb_form_q"."css:finder"],
        ["xpath=//input[@id='sb_form_q']"."xpath:attributes"],
        ["xpath=//form[@id='sb_form']/div/input"."xpath:idRelative"],
        ["xpath=//input"."xpath:position"]],"value": ""
    }, {
      "id": "ddd0e97d-6474-4a3e-a260-02f3a573f84f"."comment": ""."command": "type"."target": "id=sb_form_q"."targets": [["id=sb_form_q"."id"],
        ["name=q"."name"],
        ["css=#sb_form_q"."css:finder"],
        ["xpath=//input[@id='sb_form_q']"."xpath:attributes"],
        ["xpath=//form[@id='sb_form']/div/input"."xpath:idRelative"],
        ["xpath=//input"."xpath:position"]],"value": "FunTester"
    }, {
      "id": "959e1353-de22-4997-9b26-3ed02a55d3d6"."comment": ""."command": "sendKeys"."target": "id=sb_form_q"."targets": [["id=sb_form_q"."id"],
        ["name=q"."name"],
        ["css=#sb_form_q"."css:finder"],
        ["xpath=//input[@id='sb_form_q']"."xpath:attributes"],
        ["xpath=//form[@id='sb_form']/div/input"."xpath:idRelative"],
        ["xpath=//input"."xpath:position"]],"value": "${KEY_ENTER}"
    }, {
      "id": "d964cc49-1d76-41e2-b2aa-e0ad34da2999"."comment": ""."command": "click"."target": LinkText = funtester-Zhihu."targets": [[LinkText = funtester-Zhihu."linkText"],
        ["css=.b_algo:nth-child(5) > h2 > a"."css:finder"],
        ["Xpath =//a[contains(text(),' funtester-Zhihu ')]"."xpath:link"],
        ["xpath=//ol[@id='b_results']/li[5]/h2/a"."xpath:idRelative"],
        ["xpath=//a[contains(@href, 'https://www.zhihu.com/people/ba-yin-xian/posts')]"."xpath:href"],
        ["xpath=//li[5]/h2/a"."xpath:position"],
        [Xpath =//a[contains(.,' Funtester-Zhihu ')]"."xpath:innerText"]],"value": ""."opensWindow": true."windowHandleName": "win2584"."windowTimeout": 2000}}]]."suites": [{
    "id": "5915a8a1-cce3-42f9-ad68-5022d7fcfc1f"."name": "Default Suite"."persistSession": false."parallel": false."timeout": 300."tests": ["e34fd206-9ab8-4a6c-a543-0f80d1ba3fe9"]}],"urls": ["https://cn.bing.com/"]."plugins": []}Copy the code

Selenium4 IDE is a great option to explore for testers who need automated browser testing.

Selenium4 IDE is a new feature of Selenium4 IDE. If you want to use the Selenium4 IDE, you will need to update the Selenium4 IDE.


  • The public account FunTester first, more original articles: 450+ original articles, welcome to pay attention to, exchange, prohibit the third party to reprint without authorization.

Hot article selected

  • Function This interface is used to test albums
  • Open source testing service
  • Performance Testing Topics
  • Graphic HTTP brain map
  • Programming thinking for everyone
  • 2020 Tester self-improvement
  • Fiddler Everywhere is the future
  • Test development engineer work skills
  • Fiddler Everywhere answers questions
  • Selenium4 IDE, it’s finally here