Search code examples
c#androidxamarin-test-cloud

How to imitate OnBackPressed Xamarin Test Cloud?


Now I am testing my app using REPL and need to imitate tap on BackButton of Android device. app.Tap(c=>c.Marked("sendBN")); It is very simple to work with id of the button but I need exactly tap to Back button.


Solution

  • You should be able to just call app.Back() to simulate the user pressing the hardware or software back key.