摘要:
① alert_is_present() 判断页面是否出现alert框 wait = WebDriverWait(driver,10) alert = wait.until(EC.alert_is_present()) print alert.text ②wait.until(EC.element_ 阅读全文
posted @ 2019-11-19 20:04
mkay
阅读(340)
评论(0)
推荐(0)
摘要:
切换到弹框: switch_to_alert() ① alert.accept() 确认弹框 driver.switch_to_alert().accept() ② alert.dismiss() 取消弹框 driver.switch_to_alert().dismiss() ③ alert.tex 阅读全文
posted @ 2019-11-19 19:29
mkay
阅读(647)
评论(0)
推荐(0)

浙公网安备 33010602011771号