我已經(jīng)參考了 appium 文檔以獲得所需的功能。http://appium.io/docs/en/writing-running-appium/caps/對于 android autoGrantPermissions 功能是存在的,但對于 iOS 應(yīng)用程序,沒有找到處理應(yīng)用程序權(quán)限的功能。如果有任何解決方法或任何方法來處理 iOS 的本機(jī)應(yīng)用程序權(quán)限,請?zhí)岢鼋ㄗh。注意:在 appium 檢查器中,它顯示為“此元素?zé)o法進(jìn)行交互”
3 回答

吃雞游戲
TA貢獻(xiàn)1829條經(jīng)驗 獲得超7個贊
處理權(quán)限的一種方法是接受解除傳入警報(我正在使用 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
提交
取消