Open mdolinin opened 6 years ago
Using batch files can lead to memory leak because Windows has no way to destroy the entire process tree with all child subprocesses.
Agree. I forgot to write that you need to kill previous MicrosoftWebDriver process in batch file. But this is workaround. Hope you can fix this issue and we can use it without this hack. :)
@mdolinin so you are saying that we can't start 2+ processes of EdgeDriver in parallel?
Yes. You can start few EdgeDriver processes, but when you try to use them they will response with 500 internal error
Ok, let me check this assumption first. If Edge does not support multiple sessions - the only thing we can do is to wait for this feature to be implemented.
I investigated the situation a bit more and can confirm that this is an Edge internal limitation which should be fixed in subsequent releases. I think this could be because of the hard-coded debug port used for communication or essentially single-threaded debugger implementation. Anyway let's wait for the next Edge update to see whether they have fixed the issue.
Still reproduces with Edge 16.16299
and latest EdgeDriver.
Steps to reproduce:
-limit 1 -disable-docker
parametersActual result: Second test will fail with
500 internal error
from MicrosoftWebDriverExpected result: Second test continue running as first one
Details: In selenoid output we can see that new session is started before MicrosoftWebDriver is stoped by selenoid. For now Microsoft Edge doesn't support to run multiple sessions simultaneously https://developer.microsoft.com/en-us/microsoft-edge/platform/issues/7186486/
Workaround:
browsers.json
set to run your batch file instead of MicrosoftWebDriver directly