Last active
June 9, 2016 20:15
-
-
Save sthewissen/7210d9efa94f7b0a7dc4131324fd1448 to your computer and use it in GitHub Desktop.
Piece of startup code for Xamarin Test Cloud UI testing - iOS
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.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