十3、警告框处理

转载于:http://www.testclass.net/selenium_python/alert-windows 在WebDriver中处理JavaScript所生成的alert、confirm以及prompt十分简单,具体作法是使用 switch_to.alert 方法定位到 alert/confirm/prompt,而后使用text/accept/dismiss/ send_keys等方法
相关文章
相关标签/搜索