Selenium Grid + 转发新会话时出错 用于设置功能的 VM 空池 [英] Selenium Grid +Error forwarding the new session Empty pool of VM for setup Capabilities

查看:20
本文介绍了Selenium Grid + 转发新会话时出错 用于设置功能的 VM 空池的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在硒网格上尝试 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屋!

查看全文
相关文章
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆