How do I manipulate OS dialog from UITest?

Hi.
I am testing Xamarin.iOS and Xamarin.Android using Xamarin.UITest.

The application I am creating uses the Bluetooth function, the following dialog will be displayed when it is OFF.

I think that this dialogue is displayed by the function of OS, but how can I advance on Xamarin.UITest?
It can be either Deny or Allow.

I tried using Repl (), but I could not find an element that could be operated on the tree.

Also, I tried app.Back (), app.PressEnter (), app.Tap (q => q.Text ("ALLOW")) etc, but nothing happened.
I am glad to help you. thank you.

Answers

Sign In or Register to comment.