Forum Xamarin Test Cloud (Read Only)

Announcement:

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.

How do I set the Id in the MenuItems to use in REPL?

I'm using UiTests/ REPL, to do some tests. I need to use menuItem id, to click (Tap command in REPL) in a menuItem.

The Menuitem, is defined in the XML file with android:id="@+id/menu_settings", title and local:showAsAction="never", and appear in the "overflowButton". When I do that, in REPl, using the command "tree", the menuItem id is "title".

If I define the MenuItem in the XML file with android:id="@+id/menu_settings", title and local:showAsAction="always", in REPl, using the command "tree", the menuItem id is "menu_settings".

Seems that MenuItems that appear inside overflowbutton, have always the id "title".
If this is normal, i can't use the id do tap the menuItem.

Thanks in advance for the help,

Sign In or Register to comment.