1.遇到frame框架页面怎么处理?
用 driver.switch_to.frame()跳转进去frame
然后再操作页面元素
操作完成后使用 driver.swich_to.default_content()
2.遇到alert弹出窗如何处理?
用driver.swich_to.alert()方法转到alert弹出弹窗
让后通过 accept 点击确认
通过dismiss点击取消
通过test获取弹出窗口文本
3举例一下你遇到过那些异常,在selenium自动化测试过程中
ElementNotSelectableException:元素不能选择异常
ElementNotVisibleException :元素不可见异常
NoSuchAttributeException :没有这样属性异常
NoSuchElementException:没有该元素异常
NoSuchFrameException :没有该frame异常
TimeoutException : 超时异常
Element not visible at this point :在当前点元素不可见