Skip to content

Instantly share code, notes, and snippets.

@sthewissen
Last active June 9, 2016 20:15
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save sthewissen/7210d9efa94f7b0a7dc4131324fd1448 to your computer and use it in GitHub Desktop.
Save sthewissen/7210d9efa94f7b0a7dc4131324fd1448 to your computer and use it in GitHub Desktop.
Piece of startup code for Xamarin Test Cloud UI testing - iOS
void SetupTestCloud()
{
// Code for starting up the Xamarin Test Cloud Agent
#if ENABLE_TEST_CLOUD
Xamarin.Calabash.Start();
//Mapping AutomationId to iOS Labels
Forms.ViewInitialized += (object sender, ViewInitializedEventArgs e) =>
{
if (null != e.View.AutomationId)
{
e.NativeView.AccessibilityIdentifier = e.View.AutomationId;
}
};
#endif
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment