Skipping a Test when Element is not visible

ChristoNelChristoNel USMember ✭✭
edited June 2016 in Xamarin.iOS

Is it possible for a UITest to be skipped if the element is not visible?

Example: I use the WaitForElement method to wait for an element that may or may not be displayed, this depends on the device settings.
The problem is that if the element gets displayed the test will continue, if it does not ged displayed (Which is still correct) the test sits there until it throws a TimeoutException.

Is there maybe a different method I can use to do this or will I need to create a method in the AppDelegate that will return if I should expect to run that test or not?

Sign In or Register to comment.