Running Tests in Parallel using Selenium Grid To execute tests on several browsers or machines, you can run Selenium Grid rather than a standalone server.
Run Selenium Grid in Standalone Mode: java -jar selenium-server-4.x.x.jar standalone
WebDriver driver = new RemoteWebDriver(new URL("http://localhost:4444/wd/hub"), new ChromeOptions());
Perform the tests as given in the JUnit or TestNG sections.