-
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
Appium WebDriverException: Failed to Locate Application Window for Custom Desktop App #2043
Comments
Does you application has a splash screen? |
No. For one app it takes a while to load (5 sec, and show a gray screen till full load). But I checked this issue and I've done a light / skinny app with only some buttons and text fields, and it still crashed with the same error. |
It seems it works, but not connecting to my app.
And I got dict[str, str]: This is not all my elements in the app (length wise) and I can't know what this element is because it is not indicative; it doesn't display the element's text. My whole code:
|
In except try to connect to the existing app using process or Desktop session |
It's still not solving the issue. It seems its getting the right handle, but not recognize it as appTopLevelWindow.
|
it should be not |
This is a step ahead of the problem. Updated code:
|
oh ok. Are you using selenium 4? selenium 4 is not supported yet. Need to move to 3. |
I see. Exception: My updated code:
|
I have a desktop application written in Flet Python, compiled to exe using pyinstaller.
I'm trying to add a CI/CD pipeline that will perform UI tests.
For this, I am using Appium and WinAppDriver over Python.
I did a test on Notepad — it works great.
When I try it on my application, it fails with the following error:
selenium.common.exceptions.WebDriverException: Message: Failed to locate opened application window with appId: C:\Users\TEST\Desktop\EXE\dist\app\app.exe, and processId: 2904
The script manages to open the application, but still fails with this error.
The code base of the script from https://github.com/victorkipruto/desktop-automation/tree/master
Here is my main script code
The text was updated successfully, but these errors were encountered: