calabash / calabash-ios

Calabash for iOS
Other
1.81k stars 368 forks source link

touch not work if the simulator or real device's home key is not in bottom(run_loop:4.6.0, calabash-cucumber:0.23.0) #1442

Open DoubleJ2011 opened 2 years ago

DoubleJ2011 commented 2 years ago

Xcode: Version 13.0 (13A233) ruby: 2.6.8 % calabash-ios version
0.23.0 % curl http://192.168.2.2:37265/version _(build from runloop master branch instead of any tags/released version) {"device_family":"iPad","outcome":"SUCCESS","server_port":37265,"simulator":"CoreSimulator 776.3 - Device: iPad mini 4 (3CD1C995-6CAC-4481-8CB1-204DBAE417EE) - Runtime: iOS 15.0 (19A339) - DeviceType: iPad mini 4","app_name":"Moxtra","app_version":"7.12.0","screen_dimensions":{"height":2048,"bounds":{"y":0,"x":0,"width":768,"height":1024},"sample":1,"native_bounds":{"y":0,"x":0,"width":1536,"height":2048},"width":1536,"native_scale":2,"bounds_portrait_height":1024,"bounds_portrait_width":768,"scale":2},"git":{"revision":"1c8a897a","remote_origin":"git@github.com:calabash\/calabash-ios-server.git","branch":"develop"},"device_name":"iPad mini 4","4inch":false,"app_id":"com.moxo.moxtra-business","form_factor":"ipad","version":"0.23.0","server_identifier_to_skip":"","short_version_string":"7.12","server_identifier":"c335466d9e861645d2f2450dfe17fc95485e070d-dirty","build_date":"2021-12-09 16:18:18 +0800","ios_version":"15.0","iphone_app_emulated_on_ipad":false,"model_identifier":"iPad5,1","app_base_sdk":"iphonesimulator15.0"}

Running like: bundle cucumber --tags @xxx

if the screen rotate to the mode(rotate_home_button_to :down), then can touch successfully, or will no error but touch seems no UI response.

When query(view1) and query(view2) to compare the positions, the responsed "rect" content is different if the device screen mode is different.