-
Notifications
You must be signed in to change notification settings - Fork 6
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Invoking IApp.Dispose()
does not terminate the webdriver
#87
Comments
@ADD-David-Antolin we've been trying to reproduce the issue, but we're unable to when calling Have you tried invoking this method in the assembly tear down, or test tear down? |
@jeromelaban In
I assume that is test tear down. |
@ADD-David-Antolin yes, this is the case. Then if the driver stays active, it may be a bug in selenium or the driver itself. You may need to find a way to determine the PID of the process being launched based on the PTY being used by the build scripts. Something like this could do, to terminate those processes:
|
@jeromelaban The agent machines are Windows server so it does not have a tty equivalent I think. Do you know the equivalent of what snippet but for PowerShell? |
@ADD-David-Antolin indeed, this technique does not work for Windows. Aside from fixing Selenium, something that is out of our hands at this point. Browsing the source from Selenium may explain why this happens (somewhere in there) |
@jeromelaban I workarounded it in code:
I tested that this works in Windows machines. Maybe you can add this somehow to your codebase. |
Invoking:
Uno.UITest/src/Uno.UITest.Puppeteer/SeleniumApp.cs
Line 48 in 9669fd2
does not terminate the web driver, which can cause issues in multi-build environments.
The text was updated successfully, but these errors were encountered: