-
Notifications
You must be signed in to change notification settings - Fork 143
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
Driver.close()/quit() not work #86
Comments
@skyline-gleb I upgraded to latest Winium release v1.6.0, but still when I do driver.quit() / close (), it's not quitting the app. Error is same: Message: org.openqa.selenium.WebDriverException: Process has exited, so the requested information is not available. (WARNING: The server did not provide any stacktrace information) Am using the .LNK (C:\Users\xxx\Desktop\yyy.lnk) to open an app. If I use C:\Users\xxx\Desktop\yyy.exe IT WORKS, since I need to take a .LNK, it fails. Could you please check ?, Thanks in advance. |
@Nishanthshettar, could you please write down why do you need to launch app under a test using .LNK? Do you need to pass arguments to the app under a test? @skyline-gleb, I think one sure way to close all processes started during Winium session would be to use a trick similar to one used by Jenkins: Winium should setup some environment variable like WINIUM_SESSION={SESSION_GUID} before starting the app under a test. This way any process started by app under a test should inherit same environment variable. Then it would be only a matter of iterating processes and checking their environments. But quick googling suggests that it will require at least using some system dll and some wrapping code to marshal calls. |
@Nishanthshettar really, only |
@NickAb yes, that's like on work approach, but |
@NickAb Reason to use .lnk is, we use Auto update Squirrel Software, whenever we build Windows App in Jenkins, Squirrel will update the App (so it takes new Developer changes) so if I provide a .lnk, it will always takes new builds. @skyline-gleb Yes, .exe format works perfectly fine, but if I have to continue with .exe, everytime I need to download the new build from Jenkins and provide a path to .exe (this is overkill, In a day we build 2 to 3 times Windows app). To run my Windows tests, it would be great help if I get a workaround to use .lnk and also do tearDown() with driver.close / quit. Thanks in advance. |
@Nishanthshettar okay, i get it. Subscribe to #129 |
Even i am facing issue while closing the driver using driver.quit() ; |
Even I am facing the same issue what Athmeeya said. Whats the solution to the above issue as it has been marked closed |
I am facing the issue too.. |
I am facing the issue too |
Im just closing an app using kill command |
I believe the problem is with your local host which stops working and throws an exception. |
After launching app, even if call driver.close() or driver.quit() it doesn't kill launched app and throw Error: self.driver.quit()
File "C:\Python27\lib\site-packages\selenium\webdriver\remote\webdriver.py", line 483, in quit
self.execute(Command.QUIT)
File "C:\Python27\lib\site-packages\selenium\webdriver\remote\webdriver.py", line 201, in execute
self.error_handler.check_response(response)
File "C:\Python27\lib\site-packages\selenium\webdriver\remote\errorhandler.py", line 181, in check_response
raise exception_class(message, screen, stacktrace)
WebDriverException: Message: Process has exited, so the requested information is not available.
The text was updated successfully, but these errors were encountered: