Appium Server GUI: How to add a Desired Capability criterion to wait for splash screen to disappear before the AUT starts? - appium

I am new to desktop UI automation and am currently using Appium with WinAppDriver, coding in C# on the Visual Studio 2022 Pro IDE.
I have a splash screen that launches the app. This splash screen lasts for about 4-5 seconds.
So, when I launch Appium Server GUI to inspect elements on my app, Appium registers the splash screen first, so I can't get past it.
How can I tell Appium desktop inspector to ignore the splash screen?
I tried the following, but they have no solution that I can use:
https://github.com/appium/appium-desktop/issues/1481
Appium test not going any further after Splash Screen
I'd appreciate a way to set this in the Appium desktop inspector UI, as a setting for ignoring splash screen.

Related

"Automation Running Hold both volume buttons to stop", how to loose this grey transparent overlay message on iPhone screen while testing using Appium

I am testing an application on iPhone real device using appium.
I always see a grey transparent overlay message on the screen which sometimes interferes with the automation script execution. Any help would be deeply appreciated.
Details:
iOS version used: iOS 15.1
Appium Server GUI: 1.22
Appium inspector: 2021.9.2
Xcode: 13.1
I figured out that it's just an overlay and doesn't effect the automation script while running. You just have to increase the brightness to be able to see the screen clearly.

How to test propagating screen like splash screen?

When i open my app it shows splash screen for 3 sec and automatically goes to welcome screen. As appium need certain time to load, while running my app from appium i am unable to test the splash screen. It automatically goes to welcome screen before i can test splash screen. Is there any solution for this problem?

Appium iOS can't go to Home screen

Im using Appium to test my iOS app on real device.
During the test I need to go to the home screen (I must do so) but can't find a way to do it.
I found here that there is an option to use the accessibility for Home button-
Appium iOS can't inspect notification layer
but how can I click on this? Appium doesn't recognized this button.
Any suggestions?
Using Appium Java client you can switch to Home screen on iOS the same way as on Android:
driver.runAppInBackground(Duration.ofSeconds(-1));
You should run:
driver.executeScript("mobile: pressButton", ImmutableMap.of("name", "home"));
Look at this post.

iOS simulator showing black on 3/4 of screen

I tried several apps running in fresh install (yosemite) of Xcode 6.3 simulator but all of them displays only on first 1/4 of simulator screen.
I changed scaling - did not help.
All devices have this problem.
On another mac the apps are displaying in simulator correctly.
Here the screenshot from simulator:
I frequently have this issue with a VMWare OSX development machine I'm using to develop iOS native apps. From what I've seen it is related to the Window > Scale menu option being set to something different than 100% from a previous launch that messes around all the subsequent initialization phases.
To get rid of it, try doing this:
Exit from VMWare full-screen mode, switching to windowed mode instead.
launch iOS Simulator using its stand-alone shortcut (not from XCode) and wait until it finishes loading/booting the default device.
go to Window > Scale and set it to 100%.
go to iOS Simulator > Reset contents and settings... and click OK.
close and reopen the iOS Simulator using its stand-alone app (not from XCode).
As soon as you see it loading without the glitch, you can switch back to VMWare full-screen mode and also use the Window > Scale as you like.

iOS Safari, when running our web-app in stand alone mode, crashes iOS in background

We're developing a web app that extensively uses Cavas 2D for some demos, and is successfully running on both iOS and Android devices. Recently we've added stand-alone mode for iOS devices, so user has to "Add-To-Home-Screen" and run it using screen icon, just like regular app.
What happens recently is that after 10-12 times we start the web app on iPhone4:
Status bar (initially set to 'black') suddenly turns white and we cannot exit Safari (by pressing home button).
If we try to make screen shot (home + power button), shutter sound is played as if screen shot was taken and saved.
If we try to lock the device (power button), screen turns black, but no action after that can bring unlock-screen or any screen for that matter - display remains black.
We can only do reset by pressing home + power for 10 seconds after this point.
If we do not lock the device, web app continuously work with no issues at all, it does not crash, but cannot exit it (double click on home button also has no result).
Has anyone experienced this with their web apps?
Any guidance in how to debug this would be highly appreciated. We've tried using Safari on OSX, connect iPhone to it and use Develop -> iPhone menu but no luck so far.
Thanks in advance!
I would start trying to debug by running XCode with the iPhone connected to the computer.
In XCode open "Organizer" and go to the tab "Devices".
You should see your device there, from which you can view the iOS console. That might be able to tell you what is going wrong with the phone stops responding.
I don't think you have to put the phone in development mode (or be a paid developer) to see the iOS console.

Resources