-
-
Notifications
You must be signed in to change notification settings - Fork 159
rename end_x and end_y to delta_x and delta_y #293
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
server log: info: [debug] [INST] 2014-12-07 04:40:39 +0000 Debug: Got new command 6 from instruments: au.getElementByIndexPath('/0/0/0') info: [debug] [INST] 2014-12-07 04:40:39 +0000 Debug: evaluating au.getElementByIndexPath('/0/0/0') info: [debug] [INST] 2014-12-07 04:40:39 +0000 Debug: evaluation finished info: [debug] Socket data received (38 bytes) info: [debug] [INST] 2014-12-07 04:40:40 +0000 Debug: Got new command 7 from instruments: target.touch([{"time":0.2,"touch":[{"x":35,"y":83},{"x":285,"y":333}]},{"time":0.7,"touch":[{"x":35,"y":83},{"x":285,"y":333}]},{"time":0.8999999999999999,"touch":[{"x":100,"y":196},{"x":520,"y":616}]}]) info: [debug] [INST] 2014-12-07 04:40:40 +0000 Debug: evaluating target.touch([{"time":0.2,"touch":[{"x":35,"y":83},{"x":285,"y":333}]},{"time":0.7,"touch":[{"x":35,"y":83},{"x":285,"y":333}]},{"time":0.8999999999999999,"touch":[{"x":100,"y":196},{"x":520,"y":616}]}]) info: [debug] [INST] 2014-12-07 04:40:40 +0000 Debug: target.touch(__NSCFArray) info: [IOS_SYSLOG_ROW ] Dec 7 12:40:41 sujiande-iPhone MobileGestaltHelper[79] : libMobileGestalt MobileGestalt.c:273: server_access_check denied access to question UniqueDeviceID for pid 1356 info: [IOS_SYSLOG_ROW ] Dec 7 12:40:41 sujiande-iPhone ScriptAgent[1356] : libMobileGestalt MobileGestaltSupport.m:170: pid 1356 (ScriptAgent) does not have sandbox access for re6Zb+zwFKJNlkQTUeT+/w and IS NOT appropriately entitled info: [IOS_SYSLOG_ROW ] Dec 7 12:40:41 sujiande-iPhone ScriptAgent[1356] : libMobileGestalt MobileGestalt.c:534: no access to UniqueDeviceID (see rdar://problem/11744455) info: [debug] [INST] 2014-12-07 04:40:41 +0000 Error: VerboseError: point is not within the bounds of the screen info: [debug] Socket data received (70 bytes) info: [debug] Socket data being routed. info: [debug] [INST] 2014-12-07 04:40:41 +0000 Error: Error during eval: touch@[native code] info: [IOS_SYSLOG_ROW ] Dec 7 12:40:41 sujiande-iPhone SpringBoard[49] : Application 'UIKitApplication:io.appium.TestApp[0x3650]' exited abnormally via signal. info: [IOS_SYSLOG_ROW ] Dec 7 12:40:41 sujiande-iPhone backboardd[52] : ALS: SetDisplayFactor: factor=1.0000 info: [debug] [INST] Instruments Trace Complete (Duration : 15.359571s; Output : /tmp/appium-instruments/instrumentscli0.trace) info: [debug] [INSTSERVER] Instruments exited with code 0 |
What is the window size? That point could simply be outside the bounds. I If it's a bug then I'm pretty sure it's in the server not the ruby bindings.
|
This issue has not been solved even in 8.0.2 release version, which costed us one whole day to find out this issue. The new appium server need the client to use the end_x and end_y to get the offset when sending to the server, why the client just sends the end_x, end_y to server. As suggested above, when we use the swipe method, we should treat end_x and end_y as offset_x and offset_y. Hope it can be solved in new version. |
rename |
I am not sure this is a bug of appium or ruby_lib.The UIAMapView location is {35,83} and size is {250,250}.So I use TouchAction to try to pinch the UIAMapView,like this:
map = find_element :xpath,"//UIAMapView[1]"
puts map.location.x
puts map.location.y
top = Appium::TouchAction.new
top.swipe start_x: 35, start_y: 83, end_x: 65, end_y: 113, duration: 500
bottom = Appium::TouchAction.new
bottom.swipe(start_x: 285,start_y: 333, end_x: 235, end_y: 283, duration: 500)
pinch = Appium::MultiTouch.new
pinch.add top
pinch.add bottom
pinch.perform
I get this error:
point is not within the bounds of the screen (Selenium::WebDriver::Error::JavascriptError)
The text was updated successfully, but these errors were encountered: