Hi,
During the test execution for IOS platform a system alert dialog popup before the test step one is finished (see attached picture) . Since it is ”outside” of the application itself and out of our control, how can you ignore the system dialog regarding, permissions, assertions and alerts dialog that IOS populates?
Can you set some value in the project solution in the class ”AppInitializer” before the actual test starts, or some method to ignore all systems dialog windows during test execution?
I have tried this:
AppResult[] results = app.Query(element => element.Raw("button {text CONTAINS 'inte'}"));
if (results.Any())
app.Tap(allowButton => allowButton.Raw("button {text CONTAINS 'inte'}"));
else
……
The query does not seem to be able to find anything that contains ‘inte’. But, it should work.
Thanks in advance,
Best regards,
Mattias Edman.