My recorded Firebase Robo scripts fail due to system dialogs such as the "For a better experience, turn on device location" dialog.
When recording the script, it shows:
Requested permissions
android.permissions.ACCESS_FINE_LOCATION android.permissions.ACCESS_COARSE_LOCATION
but it does not record me clicking "OK" in the related permissions dialog or in the "Turn on device location" dialog.
The scripts work if I remove code that requires permissions, but as that functionality is integral to my app, removing the code which relies on location greatly reduces the usefulness of the scripts.
I would expect that the Robo script would either capture the option which I selected from the permissions dialog OR that the test runner would automatically handle accepting the permission. There must be some way to get past this or many apps could not be thoroughly tested
Similar question from 2017 with no answer: RoboScript not able click Enable Location OK button in Firebase Testlab
How do I make the scripts not break when these sorts of dialogs are triggered?