Reputation: 51
when trying to query and element with Calabash the query returns the element correctly but when trying to touch it it doesn't work! it touches the button under the element.
In our case we have a login screen, each element on the page has a unique ID, when we do query "webView css:'input#USER_NAME'"
we get the element correctly but when we use touch "webView css:'input#USER_NAME'"
it just don't work, it will try to touch the login in button for no reason !!
This issue happen on iOS and Android physical devices simulators, the version of calabash-android is 0.6.0 and calabash-ios is 0.16.4
by doing further investigation I found that the x and y attributes are not correct, calabash calculates the X and Y attributes wrong for our element and return wrong values
How to make calabash get the correct X and y?
Upvotes: 2
Views: 238
Reputation: 2480
As Tobias suggests, you should update to the most recent iOS and Android versions:
Upvotes: 0