摘要:
1、弹出窗口的处理(需要先进入窗口再进行处理,使用switch_to切换进弹出窗口) 弹出窗口的类型: alert:警告框 confirm:确认框 prompt:提示框 此三种类型对话框处理方式都一样,用:switch_to.alert.[处理方式] 接受:driver.switch_to.aler 阅读全文
posted @ 2020-08-11 20:02
吾言!
阅读(4611)
评论(0)
推荐(0)
摘要:
1、鼠标操作 关于鼠标的操作封装在ActionChains()类里,所以需要提前导入ActionChains()类;perform() 执行所有 ActionChains 中存储的行为(接在ActionChains类之后) 导入ActionChains 类:from selenium.webdriv 阅读全文
posted @ 2020-08-11 15:53
吾言!
阅读(457)
评论(0)
推荐(0)

浙公网安备 33010602011771号