I’ve spent the last couple hours trying to find a solution to the problem that I just started having.
Recently in our app we started asking access to the contacts. However, the problem is that the dialog appears before anything else loads and it seems like appium cannot read it (I tried using inspector and nothing loads until I MANUALLY accept that dialog). So far I’ve tried following:
asked developers to put that popup (contacts access dialog) after the initial load screen. Now the dialog loads after the initial app screen is loaded, appium can actually detects, but there is no way I can accept it, I’ve tried the following:
2.1 accept_alert
2.2 alert.accept
2.3 find_element(:name, “OK”).click