You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
For some reason, tapping buttons in WebViews doesn't seem to work reliably (at least in iOS). The buttons can be found, but tapping on them doesn't seem to work.
By tapping at a coordinate where the button is located, we should be able to work around this:
TestObject auth0_login_button = Finder.findButton('Auth0 Sign In Button')
// on retina displays, the pixel density is 2x (if might vary for other devices)
int screenScaleFactor = 2
// properties are stored as strings with decimals and can't be converted directly to integers
int x = Double.parseDouble(auth0_login_button.findPropertyValue('x')).toInteger() / screenScaleFactor
int y = Double.parseDouble(auth0_login_button.findPropertyValue('y')).toInteger() / screenScaleFactor
int height = Double.parseDouble(auth0_login_button.findPropertyValue('height')).toInteger() / screenScaleFactor
int width = Double.parseDouble(auth0_login_button.findPropertyValue('width')).toInteger() / screenScaleFactor
// tap in the middle of the button
// y value seems to be the BOTTOM of the element
MobileBuiltInKeywords.tapAtPosition(x + (width/2), y - (height/2))
The text was updated successfully, but these errors were encountered:
For some reason, tapping buttons in WebViews doesn't seem to work reliably (at least in iOS). The buttons can be found, but tapping on them doesn't seem to work.
By tapping at a coordinate where the button is located, we should be able to work around this:
The text was updated successfully, but these errors were encountered: