Selenium + Java · Lesson 41 of 44
Module 41: Selenium Grid
Your task
Implement formatGridUrl:
Write it in the editor, then press Check answer (Ctrl + Enter).
import org.openqa.selenium.WebDriver;
import org.openqa.selenium.remote.RemoteWebDriver;
import org.openqa.selenium.chrome.ChromeOptions;
import java.net.URL;
URL gridUrl = new URL("http://grid-hub.targetqa.internal:4444");
ChromeOptions options = new ChromeOptions();
WebDriver driver = new RemoteWebDriver(gridUrl, options);
driver.get("https://targetqa.com");When test suites expand to thousands of tests, running on a single laptop is impossible. Selenium Grid allows distributed execution across remote machines. In this lesson, you will master Hub and Node architecture and RemoteWebDriver. Let's scale with Selenium Grid!
Part of the Selenium + Java course (Selenium with Java). Practice this concept live in the Selenium Online Compiler or explore our free automation practice form.
Port 4444 is the standard default port for Selenium Grid.
Ready? Solve the task in the editor
Use Check answer to mark it complete. Hints are there if you need them.
___