我已經參考了 appium 文檔以獲得所需的功能。http://appium.io/docs/en/writing-running-appium/caps/對于 android autoGrantPermissions 功能是存在的,但對于 iOS 應用程序,沒有找到處理應用程序權限的功能。如果有任何解決方法或任何方法來處理 iOS 的本機應用程序權限,請提出建議。注意:在 appium 檢查器中,它顯示為“此元素無法進行交互”
3 回答

吃雞游戲
TA貢獻1829條經驗 獲得超7個贊
處理權限的一種方法是接受解除傳入警報(我正在使用 ruby):
def alert_accept
$driver.execute_script("mobile: alert", {
'action': "accept"
});
end
def alert_dismiss
$driver.execute_script("mobile: alert", {
'action': "dismiss"
});
end
添加回答
舉報
0/150
提交
取消