Testing / Selenium Interview questions
What is the purpose of Selenium Grid?
Selenium Grid distributes test execution across multiple machines and browser/OS combinations, so a suite can run in parallel remotely instead of sequentially on one local machine.
WebDriver driver = new RemoteWebDriver( new URL("http://grid-hub:4444"), new ChromeOptions() );
A test written against RemoteWebDriver doesn't need to know which physical machine or browser version actually executes it - the Grid routes the session to an available matching node based on the requested capabilities. This makes it central to cross-browser testing at scale (running the same suite against Chrome, Firefox, and Safari simultaneously) and to CI setups that need more parallel capacity than a single build agent provides.
More Related questions...