Last active
June 9, 2016 20:15
-
-
Save sthewissen/7e58e3612619697bfd2def7c0533bbd0 to your computer and use it in GitHub Desktop.
Piece of startup code for Xamarin Test Cloud UI testing - Android
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
void SetupTestCloud() | |
{ | |
// Code for starting up the Xamarin Test Cloud Agent | |
#if ENABLE_TEST_CLOUD | |
Xamarin.Forms.Forms.ViewInitialized += (object sender, Xamarin.Forms.ViewInitializedEventArgs e) => { | |
if (!string.IsNullOrWhiteSpace(e.View.AutomationId)) | |
{ | |
e.NativeView.ContentDescription = e.View.AutomationId; | |
} | |
}; | |
#endif | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment