0

I am using seleniumGrid with chromedriver for running a series of automated testcases with TestNG and Selenium

The thing is that there are several tests that launch a new chrome window that has a "data:" in the address bar and freezes for like 30 seconds before starting the actual test.

I have updated chromedriver to match the version of Chrome as it is indicated in several places and nothing has changed.

Could you give a suggestion on how to avoid this delay?

enter image description here

2 Answers 2

0

As I understand, you are having data in the address bar and while launching the website chrome is freezing or hanging.

  1. Firstly, you need to update chromedriver.exe file according to chrome version installed in your system.
  2. Second you need to download latest selenium server standalone file and place that file into the Drive /c.
  3. Third you need to create Hub and Node via command line to run ur tests.

You must use debug port before creating webDriver as :

ChromeOptions options = new ChromeOptions(); options.setExperimentalOption("useAutomationExtension", false); options.addArguments("--remote-debugging-port=9225"); options.addArguments("--start-maximized"); options.addArguments("--ignore-certificate-errors"); options.addArguments("--disable-popup-blocking"); WebDriver driver = new ChromeDriver(options); driver.navigate().to("url")

It is very important to construct our tests thread-safe in order to run them in parallel without a problem. We have to make sure that shared resources are isolated within each thread.

Automation test services include test automation planning, tools selection, test environment setup, test data preparation, test scripts development and maintenance, test reporting.These services provide features by which we can setup grid with testng and setup hub-node architecture to perform automation testing using multiple browsers, platforms and handle delays.

Here is the link which will help you to resolve your issue:-

  1. https://blogs.perficient.com/2016/01/05/parallel-execution-of-tests-using-selenium-grid-and-testng/#:~:text=Selenium%2DGrid%20allows%20you%20to,Grid%20support%20distributed%20test%20execution.
  2. https://www.lambdatest.com/blog/selenium-grid-setup-tutorial/
  3. https://www.swtestacademy.com/selenium-parallel-tests-grid-testng/
0

I updated and synchronized versions both of Chromedriver and Chrome... this didn't solve the issue.

My colleague found the root cause: each test that used the System.out.println("whatever"). was causing the browser to get this blank page.

After removing all calls to System.out.println, tests are executing without annoying delays.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.