摘要: 1 """通过系统自带的弹窗处理办法""" 2 try: 3 driver.switch_to.alert.accept() 4 except EC.NoAlertPresentException: 5 pass 6 7 8 """通过查找关键字,有两种""" 9 #第一种(传入的关键字参数如果不止 阅读全文
posted @ 2020-09-15 15:39 -Ruirui- 阅读(943) 评论(0) 推荐(0) 编辑
摘要: 1.引用config后报错,configparser.NoSectionError: No section: XXXXX 原因:没有找到目标的section,极有可能是因为路径写的不规范 解决方法:最好是使用绝对路径来指引config的位置,相对路径在Windows环境下可以成功,但在linux下就 阅读全文
posted @ 2020-09-15 15:19 -Ruirui- 阅读(429) 评论(0) 推荐(0) 编辑