【问题标题】:How to control which node to execute in Selenium Grid where the browser configuration is same?如何控制在浏览器配置相同的 Selenium Grid 中执行哪个节点?
【发布时间】:2022-09-26 11:26:21
【问题描述】:

我有 3 组测试用例,我想在具有相同浏览器名称、浏览器版本和平台名称的 3 个不同节点中并行执行它们。

我想使用 Selenium Grid 4 在 3 台具有相同版本 chrome 和相同平台名称的不同机器上运行 3 组测试用例,但节点选择似乎完全随机,我无法控制。

因此,在给定相同的浏览器配置的情况下,是否可以控制为每个场景执行哪个节点。 可以使用节点ip完成吗?

我已将此代码用于 RemoteWebdriver:-

ChromeOptions options = new ChromeOptions();
driver = new RemoteWebDriver(new URL(\"http://localhost:4444/\"), options);

在这种情况下,每种情况的功能都相同。

    标签: selenium remotewebdriver chrome-options desiredcapabilities


    【解决方案1】:

    你解决了你的问题吗?

    【讨论】:

      猜你喜欢
      • 2020-04-27
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2021-07-22
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2018-05-28
      相关资源
      最近更新 更多