I am a new to Appium and still learning.
I was tasked to write test automation scripts in C# (Visual Studio 2019) to test a Windows application.
When I start this Windows app, the splash screen comes up first and then the main screen is displayed (in about 20-25 seconds).
The problem appears with the finding of UI elements. I use inspect.exe to find the elements’ properties but even the obvious elements (with FindElementByName) can not be found.
I suspect that Appium grabs the splash screen and treats it as the main screen and mistakenly tries to find the elements there (unsuccessfully, of course).
I think so because I also run Appium desktop application and Appium Inspector also stuck displaying the splash screen and does not go to the main screen.
In Visual Studio, I’ve tried to introduce a delay in the test execution to wait for a main screen with
Thread.Sleep(TimeSpan.FromSeconds(25)); //variable from 15 to 40 seconds
However, it did not resolve the issue.
I would appreciate any help on how to bypass the splash screen.