While running Selenium Grid script on node with extension in chrome, the given URL is not getting typed in browser bar.
Test Condition: Below steps is been automated.
- Open chrome browser with Multipass chrome extension on node.
- Entering Extension Option html page in browser bar for filling some values in extension page.
- Navigating to Test Application URL.
Output: Chrome is getting loaded in node machine with extension, but after that Extension option html page link URL is not getting typed in bar. Finally script get timed out exception.
- Selenium Server: Latest version
- Chrome Driver: 74…
- Chrome: 74..
Note Points: Script work fine if we make same machine as hub and node. Also the above script in node will work fine if we comment out the add extension statement in script.
Code:
public void Launch () {
//Setting capabilities as per the node
DesiredCapabilities capabilities = DesiredCapabilities.chrome();
capabilities.setBrowserName("chrome");
capabilities.setPlatform(Platform.WIN10);
ChromeOptions options = new ChromeOptions ();
options.addArguments("start-maximized");
//Adding extension in chrome on node with CRX file of extension
options.addExtensions (newFile("src\\test\\resources\\MultiPass-for-HTTP-basic-authentication_v0.8.4.crx"));
options.merge(capabilities);
//opening driver with hub url details and capabilities options for node
driver = newRemoteWebDriver(new URL("http://10.141.108.84:4444/wd/hub"),options);
wait = newWebDriverWait(driver,130);
driver.manage().timeouts().implicitlyWait(40, TimeUnit.SECONDS);
//opening the extension option html page for entering some values in shown page
driver.get("chrome-extension://enhldmjbphoeibbpdhmjkchohnidgnah/options.html");
}