Selenium Grid + 转发新会话时出错 用于设置功能的 VM 空池 [英] Selenium Grid +Error forwarding the new session Empty pool of VM for setup Capabilities
问题描述
我正在硒网格上尝试 POC
.我收到此错误:
I am trying a POC
on selenium grid. I am receiving this error :
转发新会话时出错 用于设置功能的虚拟机空池 [{browserName=chrome, version=47, platform=WIN8_1}]
Error forwarding the new session Empty pool of VM for setup Capabilities [{browserName=chrome, version=47, platform=WIN8_1}]
下面是代码:
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).我在管理员模式"下启动了命令提示符.2).在其中将 java 路径设为cd C:Program Files (x86)Java"3).然后将命令运行为java -jar selenium-server-standalone-3.0.1.jar"而不指定任何角色
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
和Vollaaaa......它得到了修复......!!!
感谢大家的帮助...在过去 3 天出现此错误后...必须说是很大的安慰.. :-)
查看此链接以获取有关如何执行此操作的更多信息...https://stackoverflow.com/a/42187314/7551276
Checkout this link for more information on how to do this... https://stackoverflow.com/a/42187314/7551276
这篇关于Selenium Grid + 转发新会话时出错 用于设置功能的 VM 空池的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!