2019年12月12日
摘要: IDE断言分类 阅读全文
posted @ 2019-12-12 19:21 wenjingtester 阅读(122) 评论(0) 推荐(0)
摘要: https://www.cnblogs.com/zddwork/p/11780977.html 阅读全文
posted @ 2019-12-12 19:02 wenjingtester 阅读(209) 评论(0) 推荐(0)
摘要: str1="hello"try: print("%d" %str1)except Exception as F: print(F)finally: print("%s" %str1) 阅读全文
posted @ 2019-12-12 18:07 wenjingtester 阅读(138) 评论(0) 推荐(0)
摘要: file_path='file:///'+os.path.abspath('case.html') 用浏览器的方式打开一个页面+获取绝对路径 处理弹窗: dr=webdriver.IE()dr.switch_to_alert() 处理弹窗dr.switch_to_alert().accept() 确 阅读全文
posted @ 2019-12-12 18:03 wenjingtester 阅读(597) 评论(0) 推荐(0)
摘要: 链接地址:https://blog.csdn.net/yoyocat915/article/details/80167671 阅读全文
posted @ 2019-12-12 17:56 wenjingtester 阅读(543) 评论(0) 推荐(0)
摘要: 第一种方式:键盘操作:通过定位(用xpath)页面最底部元素,运用键盘的down键移到底部 dr.find_element_by_xpath().send_keys(keys.DOWN)dr.find_element_by_xpath().send_keys(keys.UP) 第二种:通过js(通用 阅读全文
posted @ 2019-12-12 17:49 wenjingtester 阅读(1932) 评论(0) 推荐(0)
摘要: GeckoDriver用于驱动Firefox,在这之前请确保已经正确安装好了Firefox浏览器并可以正常运行。 一、GeckoDriver的安装 GitHub:https://github.com/mozilla/geckodriver 下载地址:https://github.com/mozill 阅读全文
posted @ 2019-12-12 10:19 wenjingtester 阅读(399) 评论(0) 推荐(0)