I've got a RecyclerView with a ActionMode which can be activated by a long click on a RecyclerView item.
How to trigger a long click in Android with Xamarin UI tests? AndroidApp contains a method TouchAndHold(Func query) but this one seems not to trigger a long click.
Anyone here have a solution?
My code:
Func<AppQuery, AppQuery> test = c => c.Marked("Test");
app.WaitForElement (test);
app.TouchAndHold (test);
TouchAndHold should trigger a LongClick.
I forgot to build a new release apk where i implemented the OnLongClick functionality. After building a new apk the TouchAndHold worked as expected
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With