问题
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