Basic functions like Entertext, Tap etc not working for iOS9

Hi All,

I am trying automate an iPad app using Xamarin.UITest for iOS 9 but basic functions like Entertext, Tap etc not working for me.
I tried to query and flash the object, that is working fine.
Below are logs :-

**>>> app.Query(e => e.Class("URLTextField")) **
Query for Class("URLTextField") gave 1 results. [ [0] { Id => null, Description => "; layer = >", Rect => { Width => 300,
Height => 30,
X => 234,
Y => 482,
CenterX => 384,
CenterY => 497
},
Label => null,
Text => "",
Class => "URLTextField",
Enabled => true
}
]

**>>> app.Flash(e => e.Class("URLTextField")) **
Flashing query for Class("URLTextField") gave 1 results. [ [0] { Id => null, Description => "; layer = >", Rect => null, Label => null,
Text => null,
Class => null,
Enabled => false
}
]

**>>> app.Tap(e => e.Class("URLTextField")) **
__Tapping element matching Class("URLTextField") at coordinates [ 384, 497 ]. Error while performing Tap(Class("URLTextField")) Exception: System.Exception: Underlying query failed with output: {"details":"","outcome":"FAILURE","reason":"Timed out running command uia.tapOffset('{:x 384 :y 497}')"} at Xamarin.UITest.iOS.iOSGestures.ValidateSuccessfulCalabashResult (Xamarin.UITest.Shared.Http.HttpResult result) [0x00000] in :0 at Xamarin.UITest.iOS.iOSGestures.TapCoordinates (Single x, Single y) [0x00000] in :0
at Xamarin.UITest.iOS.iOSApp+c__AnonStorey9.<>m__0 () [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 Tap(Class("URLTextField"))__

I noticed when I query object enable filed was true but on Flash the output is different.
Same script is working fine on ios8.

Please guide me how to get it working on iOS9

Best Answer

Answers

Sign In or Register to comment.