Appium iOS 真机运行时,每次启动 App 都要选择是否允许发送通知,使用网络..

yyy · October 31, 2017 · Last by yyy replied at November 01, 2017 · 1344 hits

iOS 真机运行时,每次启动 App 都要选择是否允许发送通知,是否允许使用网络,是否允许使用当前位置.

我之前一直以为只有模拟器里每次运行都要选择,没想到真机也是这样.

有没有办法可以在真机运行时不用每次启动都选择这些呢?

共收到 2 条回复 时间 点赞

Appium 有提供系统提示默认开启和关闭的方法,去查一下

yyy #2 · November 01, 2017 Author
John 回复

查了一下, autoAcceptAlerts 和 autoDismissAlerts , 这两个都是Does not work on XCUITest-based tests.

需要 Sign In 后方可回复, 如果你还没有账号请点击这里 Sign Up