简体   繁体   English

如何运行并运行Grid

[英]How can I run Grid up and running

Is it possible to run the hub and nodes in Selenium Grid through Java/Selenium code? 是否可以通过Java / Selenium代码在Selenium Grid中运行集线器和节点? In an example provided by @Boni Garcia, there is GridLauncherV3 but this is not working with Selenium-jupiter version 3.2.1. 在@Boni Garcia提供的示例中,有GridLauncherV3但不适用于Selenium-jupiter版本3.2.1。 Can you please help? 你能帮忙吗?

    // Start hub

    GridLauncherV3.main(new String[] { "-role", "hub", "-port", "4444" });

    // Register Chrome in hub
    WebDriverManager.chromedriver().setup();
    GridLauncherV3.main(new String[] { "-role", "node", "-hub",
            "http://localhost:4444/grid/register", "-browser",
            "browserName=chrome", "-port", "5555" });
    '''

This example is working at the time of this writing, I have just double checked. 在撰写本文时,此示例正在运行,我已经仔细检查过。 Just notice it is disabled, an so you need to remove the @Disabled annotation to execute it. 只是注意到它已禁用,所以您需要删除@Disabled注释才能执行它。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 这需要多长时间才能运行,如何加快运行速度 - How long will this take to run and how can I speed it up 我可以将用户包加载到 eclipse 中以在启动时运行吗? - can I load user packages into eclipse to run at start up and how? 没有浏览器我可以运行Selenium网格吗? - Can I run Selenium grid without browsers? 我如何运行 Mule 运行时引擎 - How Can I run Mule runtime engine Running 是否可以在不运行扫描仪的情况下运行SonarQube Java Analyzer? 如何? - Can I run the SonarQube Java Analyzer without running the scanner? And how? 如何在 Selenium Grid 中为会话提供无限的空闲时间,但清理断开连接的会话? - How can I give sessions in a Selenium Grid an unlimited idle time, but clean up disconnected ones? 运行具有200个节点的Selenium Grid 2。 如何增加码头螺纹? - Running a Selenium Grid 2 with 200 nodes. How can I increase the Jetty threads? 如果我运行我的阵列程序 0 显示我如何删除它? - If I run my array program the 0 shows up how can i remove it? 如何在不执行SQL查询的情况下验证我的jdbc连接是否数据库正在运行 - How can I validate my jdbc connection whether the data base is up running without executing sql query TestNG-如何通过testng.xml设置运行@Test方法的顺序? - TestNG - How can I set up the order of running @Test methods through testng.xml?
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM