calabash / calabash-ios

Calabash for iOS
Other
1.81k stars 368 forks source link

iOS 13 not able to dismiss the springboard alert #1421

Open pvenum889 opened 4 years ago

pvenum889 commented 4 years ago

I am trying to dismiss a springboard alert on the client using device_agent.dismiss_springboard_alert("Continue") When I checked with device_agent.springboard_alert_visible? It returned false even when the alert was present on the screen This always worked and is working with all other versions except for ios 13

pvenum889 commented 4 years ago

The setup used for testing is:

iPad Pro(10.5 inch) (iOS 13.3) Xcode 10.3 Ruby 2.6.4 (with rbenv) calabash-cucumber-0.21.10 run_loop-4.3.0 macOS 10.15.2

jmoody commented 4 years ago

@pvenum889 I need a screenshot of the alert.

pvenum889 commented 4 years ago

@jmoody here you go

Screen Shot 2020-01-21 at 9 21 20 AM
pvenum889 commented 4 years ago
Screen Shot 2020-01-21 at 1 43 34 PM

Also we have a safari view for the login page , and not able to access those elements with device agent

jmoody commented 4 years ago

Sadly, I will not be able to help beyond offering some advice.

It is possible that this is not a SpringBoard alert. Search the SpringBoard alert titles in DeviceAgent: https://github.com/calabash/DeviceAgent.iOS/tree/develop/Server/Resources.xcassets/springboard-alerts

The Calabash DeviceAgent API seems to be lacking some functionality. Try interacting with query system directly using the http API. Use bundler + run_loop + pry to use ruby to make http requests or use a program like Postman to make queries.

pvenum889 commented 4 years ago

Screen Shot 2020-01-22 at 9 27 26 AM I find it in the alerts, its weird that it works till 13.1 but not 13.3