As I perceive, you’re having knowledge within the tackle bar and whereas launching the web site chrome is freezing or hanging.
- Firstly, it’s essential to replace chromedriver.exe file in accordance with chrome model put in in your system.
- Second it’s essential to obtain newest selenium server standalone file and place that file into the Drive /c.
- Third it’s essential to create Hub and Node by way of command line to run ur assessments.
It’s essential to 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 extremely vital to assemble our assessments thread-safe in an effort to run them in parallel with out a downside. We’ve got to ensure that shared sources are remoted inside every thread.
Automation check companies embody check automation planning, instruments choice, check surroundings setup, check knowledge preparation, check scripts improvement and upkeep, check reporting.These companies present options by which we are able to 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 is able to enable you to resolve your situation:-
- 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/