Selenium Grid +转发新会话时出错用于设置功能的VM虚拟池 [英] Selenium Grid +Error forwarding the new session Empty pool of VM for setup Capabilities
问题描述
我正在selenium网格上尝试一个 POC
。我收到此错误:
$ b
错误转发新会话虚拟机的虚拟池设置功能[{browserName = chrome,version = 47,平台= WIN8_1}]
以下是代码:
BeforeTest
public void setup()抛出MalformedURLException {
nodeURL =http:// localhost:4444 / wd / hub;
DesiredCapabilities功能= DesiredCapabilities.chrome();
capabilities.setBrowserName(chrome);
capabilities.setVersion(47);
capabilities.setPlatform(Platform.WIN8_1);
extent = new ExtentReports(./ extentReport.html,true,DisplayOrder.NEWEST_FIRST);
System.setProperty(webdriver.chrome.driver,< path> \\chromedriver.exe);
driver =新的RemoteWebDriver(新的URL(nodeURL),功能);
//驱动程序=新的ChromeDriver(功能);
driver.manage()。window()。maximize();
driver.get(http://www.qaonlinetraining.com);
我只做了一个小小的调整。
<1>。我以管理员模式启动了命令提示符。
2)。将java路径作为cd C:\ Program Files(x86)\Java在其中
3)。然后将命令作为java -jar selenium-server-standalone-3.0.1.jar运行,没有指定任何角色
和 Vollaaaa ...它有固定... !!!
感谢大家的帮助...在过去3天发生此错误之后.. 。 - )
查看此链接,了解有关如何执行此操作的更多信息...
https://stackoverflow.com/a/42187314/7551276
I am trying a POC
on selenium grid. I am receiving this error :
Error forwarding the new session Empty pool of VM for setup Capabilities [{browserName=chrome, version=47, platform=WIN8_1}]
Below is the code :
BeforeTest
public void setup() throws MalformedURLException{
nodeURL="http://localhost:4444/wd/hub";
DesiredCapabilities capabilities = DesiredCapabilities.chrome();
capabilities.setBrowserName("chrome");
capabilities.setVersion("47");
capabilities.setPlatform(Platform.WIN8_1);
extent = new ExtentReports("./extentReport.html",true,DisplayOrder.NEWEST_FIRST);
System.setProperty("webdriver.chrome.driver", "<path>\\chromedriver.exe");
driver = new RemoteWebDriver(new URL(nodeURL),capabilities);
//driver = new ChromeDriver(capabilities);
driver.manage().window().maximize();
driver.get("http://www.qaonlinetraining.com");
}
I just did a small tweak.
1). I launched the command prompt in "admin mode". 2). Gave the java path as "cd C:\Program Files (x86)\Java" in it 3). Then ran the command as "java -jar selenium-server-standalone-3.0.1.jar" without specifying any role
and Vollaaaa...it got fixed...!!!
Thanks to all of you for your help...Was after this error for last 3 days...a great relief must say.. :-)
Checkout this link for more information on how to do this... https://stackoverflow.com/a/42187314/7551276
这篇关于Selenium Grid +转发新会话时出错用于设置功能的VM虚拟池的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!