The LEAP

Automation insights and productivity tips from LEAPWORK.

All Posts

Selenium Automation – More than Testing

While Selenium is primarily used for automating web applications for testing purposes, it’s actually intended for browser automation more generally. It's up to Selenium users to come up with creative applications of the automation framework.

The open-source Selenium framework is a widely used solution for automating tests of websites and web applications.

However, with the ability to automate any action that takes place in a browser, like clicking on buttons and typing text into fields, as the end-user would, the power of Selenium goes beyond web testing. Use cases of Selenium-powered automation include:

  • Automated data migration in and between web-based front- and back-office applications
  • Automated workflows in e-commerce operations
  • Automated monitoring of corporate intranets

Think of all the repetitive web-based processes that take place in your organization each day, involving for example your marketing website, a CRM system, and a cloud-based project management tool. Now imagine you could train software robots to perform these tasks by visually designing the task flow.

With LEAPWORK’s codeless software automation, each action taking place in an application’s UI, are represented by building blocks you can connect to create visual workflows for automating web-based processes.

Consider an example in which the tester wants to automate search for an item (“star wars lego”) in an online shop (amazon.com) and then compare the number of search results with a specified value (2500).

LEAPWORK Flow

(Figure 1)

The automation flow (see Figure 1) is created by connecting just seven commands, or building blocks, representing actions in the web application’s UI:

  1. Start: Initiates the execution of the automation flow
  2. Start Web Browser: Opens specified browser (Chrome) and navigates to specified URL (amazon.com)
  3. Click Web Element: ‘Clicks’ on the specified element, i.e. the search field.
  4. Type Web Text: Inputs “screwdriver” in the search field
  5. Get Web Number: Finds and logs a number, i.e. the number of search results
  6. Compare: Performs a compare of the number retrieved in the previous step with a specified value (2500).
  7. Pass: Indicates that the automation flow has passed on the condition that the compare operation returns the specified result.

The Complete Guide to Automating Tests with Selenium

Read the LEAPWORK guide to learn more about Selenium as a test automation solution and its benefits in testing. The guide also covers the skills, effort, and resources required to fully succeed with Selenium. Finally, it proposes a web automation solution you can use without having to worry about the technical details.CTA-FactSheet

Aske Denning
Aske Denning
Content Marketing Manager at LEAPWORK

Related Posts

How No-code Test Automation Closes the Skills Gap in Software Development

The beginning of 2020 introduced new challenges for businesses worldwide. COVID-19 meant that the use of digital platforms increased rapidly, accelerating the need for digital transformation. With this came an immense pressure on IT departments. Teams had to find a way to scale and provide the digital services customers required with very limited resources.

Tips for Automating Testing in Desktop Applications

Most organizations are dependent on desktop applications to perform business-critical processes and tasks. The larger the IT landscape, the more processes you’ll have to test, and the more desktop applications and technologies you’ll have to update.

Differences in Automating Web and Desktop Application Testing

For any enterprise, whether large or small, you’ll have business processes that run across web and desktop applications. But how do the two application types differ, and what do you need to bear in mind when automating them?