Closed
Description
Windows 7 VM has the hub and the node.
Test :
import java.net.URL;
import java.util.concurrent.TimeUnit;
import org.openqa.selenium.WebDriver;
import org.openqa.selenium.remote.DesiredCapabilities;
import org.openqa.selenium.remote.RemoteWebDriver;
import org.testng.annotations.Test;
public class TestSeleniumGrid249 {
@Test
public void testSeleniumGrid249() throws Exception {
DesiredCapabilities capabilities = DesiredCapabilities.chrome();
WebDriver driver = new RemoteWebDriver(new URL("http://172.27.1.146:4444/wd/hub"), capabilities);
Thread.sleep(5000);
driver.manage().timeouts().setScriptTimeout(10, TimeUnit.SECONDS); // fails here
}
}
Start Node: java -Dwebdriver.ie.driver=\tmp\webdriver\iedriver\iedriver_2.48.0_Win32bit.exe -Dwebdriver.chrome.driver=\tmp\webdriver\chromedriver\chromedriver_2.20_32bit.exe -jar C:\tmp\webdriver\2.49.0.jar -role wd -nodeConfig node_5555_1.json
Start Hub: java -jar C:\tmp\webdriver\2.49.0.jar -role hub -hubConfig hub_4444_1.json
Hub Json:
{
"port": 4444,
"newSessionWaitTimeout": 25000,
"nodePolling": 5000,
"cleanUpCycle": 5000,
"browserTimeout": 120000,
"timeout": 120000,
"maxSession": 5
}
Node Json:
{
"capabilities": [
{
"seleniumProtocol": "WebDriver",
"browserName": "internet explorer",
"maxInstances": 1,
"version": "11"
},
{
"seleniumProtocol": "WebDriver",
"browserName": "chrome",
"maxInstances": 3,
"version": "47"
},
{
"seleniumProtocol": "WebDriver",
"browserName": "firefox",
"maxInstances": 3
}
],
"configuration": {
"maxSession": 3,
"port": 5555,
"hubPort": 4444,
"hubHost": "127.0.0.1"
}
}
Metadata
Metadata
Assignees
Labels
No labels