shormistha

What are the challenges you faced in Selenium Automation?


Selenium is a suite of web browser automation tools to automate browsers across a range of platforms. It is principally used to automate web apps for testing reasons even though it’s capable of much more. The majority of the big-name browser vendors support it.

As the web gets more complicated, using the Selenium testing approach has become more and more popular. Even though it has made web testing far simpler for many teams and enterprises around the world, it has its fair share of issues due to its open-source nature.

Most of the challenges that testers experience have moderately straightforward solutions, which is why we summarize the most common Selenium challenges and how to fix them.

Challenges You faced in Selenium

· Can’t test windows application- Selenium does not support windows based apps. It supports only web-based apps.

· Can’t test mobile apps- We can test on any browser and OS on the desktop using selenium but we cannot deal with mobile testing with selenium alone. However, there is a solution to this. You can use Appium to handle Android and iOS native, mobile, and hybrid applications using the WebDriver protocol.

· Limited reporting- It is one of the key challenges, as with selenium, you couldn’t generate a good report, but there is a workaround. You can create reports using TestNG or Extent reports.

· Pop-up Windows- When a prompt, easy, or confirmation alert pops-up, it can be the toughest task to automate it to either accept or close. In addition, Windows-based alerts are beyond the capabilities of the Selenium since they are part of the OS instead of the browser. Though, since Selenium WebDriver can operate diverse windows, web-based alerts can generally be handled with the switchTo technique to control the pop-up while keeping the browser in the background.

· Page load- Handful of web pages is user-specific. These pages load diverse elements depends on the diverse user. Sometimes some elements appear depends upon the preceding action. If you select a country from the country dropdown then cities related that country will load in the cities dropdown. In runtime, the script could not discover the element. To overcome this we necessitate using explicit waits in the script to provide the elements enough time to load and to spot the element.

· Limited Captcha- Handling captcha is limited in selenium. There are some third-party tools to automate it yet we can’t achieve 100% results.

· Scalability- Yet again, while Selenium WebDriver allows you to test on pretty much any browser or OS, it’s still limited in how many tests it can run without delay and how quick it can run them based on how many hub/node configurations the tester has. Without a Selenium grid, you can just test consecutively. However, with a Selenium grid and a third-party cloud tool like CrossBrowserTesting, you can test in equivalent. This means it can reduce the time it takes to run automated tests and escalating the configurations you can test on.

Follow me on:

LinkedIn- https://www.linkedin.com/in/shormistha-chatterjee/

Blogger - https://shormistha4.blogspot.com/ https://qaandsoftwareblog.blogspot.com/

Dzone- https://dzone.com/users/3854036/shormistha.html

Medium- https://medium.com/@shormistha4

Quora- https://www.quora.com/profile/Shormistha-Chatterjee

  • Love
  • Save
    Add a blog to Bloglovin’
    Enter the full blog address (e.g. https://www.fashionsquad.com)
    We're working on your request. This will take just a minute...