Forum Xamarin Test Cloud (Read Only)


The Xamarin Forums have officially moved to the new Microsoft Q&A experience. Microsoft Q&A is the home for technical questions and answers at across all products at Microsoft now including Xamarin!

To create new threads and ask questions head over to Microsoft Q&A for .NET and get involved today.

Selecting one of multiple matching elements

CHarrisCHarris USMember ✭✭

I have a page that contains two buttons with matching text. I would like to choose the second one but it seems like the first is always chosen by default. Below is the relevant code and the output.

app.WaitForElement("ABCD", null, new TimeSpan(0, 0, 15), null, null);

Waiting for element matching Marked("ABCD").
Using first element (2 total) matching Marked("ABCD").
Tapping coordinates [ 540, 466 ].

How do I specify that I would like to tap the second element that is named ABCD?

Best Answer


  • CHarrisCHarris USMember ✭✭

    That worked perfectly! Thank you Anthony!

Sign In or Register to comment.