ClearText on a UITextView doesn't work?

MarkGibaud.2183MarkGibaud.2183 GBUniversity ✭✭

I can't get ClearText to work when a (iOS) UITextView (not a UITextField) has the focus. App.EnterText() results in text being typed into the view, but app.ClearText results in:

app.ClearText()
Error while performing ClearText()
Exception: System.Exception: Unable to find text element with focus.
at Xamarin.UITest.iOS.iOSApp.m__12 () [0x00000] in :0
at Xamarin.UITest.iOS.EnsureVersion.AtLeast (Xamarin.UITest.Shared.Dependencies.VersionNumber atLeastVersion, System.Action action, System.String optionalErrorMessage) [0x00000] in :0
at Xamarin.UITest.iOS.iOSApp.m__6 () [0x00000] in :0
at Xamarin.UITest.Utils.ErrorReporting.With (System.Action func, System.Object[] args, System.String memberName) [0x00000] in :0
Exception: Error while performing ClearText()

Any workarounds?

Xamarin.UITest v0.7.0

Answers

Sign In or Register to comment.