-
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
Not able to getWindowHanldes in outlook after closing splash window #611
Comments
Hello, I have faced a similar issue with applications that have a splash screen. After the splash is closed the window the session was attached to does not exist anymore and therefore no more actions can be taken. The most reliable solution was to start a total of 3 sessions to handle the splash screen. |
@bulbul1234 This works for me. I have a splash screen and a log-in. But, here is the code for the splash screen.
|
Hi @bulbul1234, Thank you for bringing it up. @Kamilbrd is exactly right that the session no longer took an operation once the splash screen was dismissed. In addition, @liljohnak's solution is indeed clever even though it still has a chance to hit the same error you saw. I understand that it would be much more convenient and elegant to be able to enumerate all top level application window with the same process Id after the main window is dismissed. I am working on making this improvement in GetWindowHandles soon. Please stay tune and thank you everyone for the great feedback and suggestion. |
Hi @bulbul1234, @Kamilbrd, and @liljohnak, Thank you for bringing this issue up which helped making WinAppDriver better. The v1.1.1 GetWindowHandles endpoint will now continue to work even when the current application window is closed/destroyed. This will allow you to enumerate through all application top level windows with the same processId until the session is terminated. Would you please give it a try? |
Having the same problem with Outlook. I have installed WinAppDriver 1.1.1 but I am using the AppiumLibrary in RobotFramework to do the automation. Basically I want to launch Outlook and click on the File Menu. That is all I am trying to do... Here is my sample code from RobotFramework:
I am getting the following error from WinAppDriver:
|
Apologies for the delay, I've just implemented v1.1.1 and can confirm it works as intended, the workaround with multiple driver sessions is no longer required. Thank you for the support. @YouWhy
|
@Kamilbrd Thanks for your support. On another thread, I got my answer. I needed to create a DESKTOP session and then using that session, get the window I needed. I am able to do this successfully in my Robot Framework script now using the following code snippet:
|
The text was updated successfully, but these errors were encountered: