小编use*_*030的帖子

如何使用机器人框架接受警报

使用selenium2library通过机器人框架自动化我的Web应用程序.我无法使用现有关键字接受浏览器提醒.

尝试接受警报时获取以下异常.

UnexpectedAlertPresentException: Alert Text: Delete selected trusted provider(s)?
<super: <class 'WebDriverException'>, <UnexpectedAlertPresentException object>>
Run Code Online (Sandbox Code Playgroud)

尝试下面的selenium2library关键字Alert Should Be Present,Get Alert Message,Confirm Action,等.

请指导我如何继续.

python python-2.7 robotframework selenium-webdriver

3
推荐指数
1
解决办法
1万
查看次数