-
Notifications
You must be signed in to change notification settings - Fork 1.4k
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
Get the pid from winappdriver #1341
Comments
Your application have a splash screen? You need to create a session with desktop session and attach the application to that sessionDesktop Session |
@meilinfan Like anunay1 said it look like your app launches another window that ends up being your final window. So winappdriver is still looking for that original window. You can take a look here at how we handle the issue in python for inspiration: https://github.com/Accruent/robotframework-zoomba/blob/master/src/Zoomba/DesktopLibrary.py#L163 |
Thanks @Wolfe1 @anunay1 for your reply: Then my application will be show up . But when I want to close the app using Driver.quit, the app is still opened . So I want to know how to get the pid from app which created by session , and better the pid is the same with task Manager? |
@meilinfan I think, in your case, you can try using the |
@meilinfan There are two ways to handle it, on is to check whether application is running and if its true, then kill the application, the other would be to to kill the application in the tear down method. |
Thanks all a lot. |
The text was updated successfully, but these errors were encountered: