Airtest 求问 Airtest 怎么打开 IOS 通知栏界面,点击收到的横幅通知

麦兜 · 2020年08月06日 · 1349 次阅读

使用的 IOS13.3,我在 APP 内想打开通知栏,去点击收到的通知。
我尝试想使用下滑打开通知栏,多次调试无果

参考过以下文档想实现:
https://testerhome.com/articles/21450
https://www.cnblogs.com/csj2018/p/9853232.html

获取设备的高度和宽度

width, height = device().get_current_resolution()
start_pt = (width * 0.1, height / 10)
end_pt = (width * 0.9, height / 2)
swipe(start_pt, end_pt)

此方法,start_pt = (width * 0.1, height / 11),当 height / 11,分母大于 10 的时候就没有了滑动效果

swipe((282,0),(389,1022))
swipe((0,0),(389,1022))
当 height:0,没有滑动效果

求教一下,怎样才能实现打开 IOS 的通知栏,调了一天调的完全懵逼了

暂无回复。
需要 登录 后方可回复, 如果你还没有账号请点击这里 注册