I have a xamarin.uitestApp running in Visual Studio, I want to write tests for an App that uses the drawerlayout for navigation.
How do I make Xamarin.Uitest tap the Hamburger Icon in drawerlayout toolbar?
I have tried:
app.WaitForElement(c => c.Marked("toolbar"));
app.Tap(c => c.Marked("toolbar"));
The test succeeds, but the drawer is not opened.
Thanks in advance.
This is pretty straight forward. Assign AutomationId to your burger menu view, whether this is in XAML or in code. Then you can tap on it with the same code you used, just replace "toolbar" with whatever Name you gave to AutomationId.