Can you use multiple instances of Edge on a Selenium Grid Node?

我们两清 提交于 2019-12-12 16:33:26

问题


Using the config below, I am only seeing one instance of Edge running on my node.

When using chrome with a similar setup, I can run multiple browsers on the same node.

Here is the config.json I am using:

{
  "capabilities":
      [
        {
          "browserName": "MicrosoftEdge",
          "maxInstances": 4
        }
      ],
  "configuration":
  {
    "proxy": "org.openqa.grid.selenium.proxy.DefaultRemoteProxy",
    "maxSession": 5,
    "port": 7777,
    "register": true,
    "registerCycle": 5000,
    "hubPort": 4444,
    "hubHost": 192.168.56.101
  }
}

I am running the hub and node on a single VM running

  • Win10 Aniversery Edition
  • the corresponding Edge WebDriver (14393)
  • Selenium 2.53.1 selenium-server-standalone.jar.
  • Java 8

回答1:


No.

As per MS (https://twitter.com/instylevii/status/783480823445987329), at this time the MS Edge WebDriver support only one session per Selenium Grid node.




回答2:


As a workaround, you can exploit Windows virtual desktop basic feature.

See headless-selenium-for-win

I've used and validated it on a Windows 2012 server with 5 concurrent IE11 instances.



来源:https://stackoverflow.com/questions/39794604/can-you-use-multiple-instances-of-edge-on-a-selenium-grid-node

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!