I'm trying to generate UITests using Test Recorder for an Android app created using Xamarin Forms.
I have a login page with a username, password and button all containing a StyleId property. I added code to the MainActivity to generate a content description from each StyleId. I'm pretty happy this is all working as expected.
When I run the app in test recorder and enter text in the username control get the following generated:
app.Tap(x => x.Class("UITextField").Text("steve"));
I was expecting the code to use .Marked to identify the control
When I click on the Sign In button the following is generated:
app.Tap(x => x.Class("UIButton").Marked("Sign In"));
Here it did generate a .Marked but used the buttons caption rather than the StyleId
It seems like Test Recorder does not support Xamarin Forms apps, only Xamarin native apps at the moment.
Anyone else have experience in this area and can shed some light?