As I perceive, you might be having knowledge within the tackle bar and whereas launching the web site chrome is freezing or hanging.
- Firstly, it’s good to replace chromedriver.exe file in accordance with chrome model put in in your system.
- Second it’s good to obtain newest selenium server standalone file and place that file into the Drive /c.
- Third it’s good to create Hub and Node by way of command line to run ur assessments.
You could use debug port earlier than creating webDriver as :
ChromeOptions choices = new ChromeOptions();
choices.setExperimentalOption(“useAutomationExtension”, false);
choices.addArguments(“–remote-debugging-port=9225”);
choices.addArguments(“–start-maximized”); choices.addArguments(“–ignore-certificate-errors”); choices.addArguments(“–disable-popup-blocking”);
WebDriver driver = new ChromeDriver(choices);
driver.navigate().to(“url”)
It is rather essential to assemble our assessments thread-safe with a view to run them in parallel with out a downside. We now have to make it possible for shared sources are remoted inside every thread.
Automation check providers embody check automation planning, instruments choice, check surroundings setup, check knowledge preparation, check scripts growth and upkeep, check reporting.These providers present options by which we will setup grid with testng and setup hub-node structure to carry out automation testing utilizing a number of browsers, platforms and deal with delays.
Right here is the hyperlink which can aid you to resolve your problem:-
- https://blogs.perficient.com/2016/01/05/parallel-execution-of-tests-using-selenium-grid-and-testng/#:~:textual content=Seleniumpercent2DGridpercent20allowspercent20youpercent20to,Gridpercent20supportpercent20distributedpercent20testpercent20execution.
- https://www.lambdatest.com/weblog/selenium-grid-setup-tutorial/
- https://www.swtestacademy.com/selenium-parallel-tests-grid-testng/