shuilan55555

导航

2020年5月27日 #

UI测试中的等待方法:三种等待方法的区别

摘要: 强制等待:sleep() 隐式等待:implicitly_wait() 显示等待:WebDriverWait() 与until()或者until_not()方法结合使用 WebDriverWait与expected_conditions结合使用 显示等待,自定义等待条件 强制等待:sleep() i 阅读全文

posted @ 2020-05-27 12:56 shuilan55555 阅读(559) 评论(0) 推荐(0) 编辑

运行自动化测试降本报错“WebDriverException: Message: Element is not clickable at point“

摘要: 此时需要显示等待。 1.运行脚本时提示“WebDriverException: Message: Element is not clickable at point (934.316650390625, 700.316650390625). Other element would receive t 阅读全文

posted @ 2020-05-27 12:05 shuilan55555 阅读(191) 评论(0) 推荐(0) 编辑

定位元素不能识别的原因

摘要: 是否需要切换窗口 是否需要切换frame 是否需要切换提示框等 元素本身不可点击比如代表斜体的标签《i》,通过其上层元素定位识别,再不行只能通过JS。 阅读全文

posted @ 2020-05-27 09:58 shuilan55555 阅读(133) 评论(0) 推荐(0) 编辑