selenium +Python 测试时报 “Element is not visible”解决方法
来源:互联网 发布:java borderlayout 编辑:程序博客网 时间:2024/05/17 07:30
在selenium +Python 进行web测试时报, 下面的语句报“Element is not visible”,但是通过 xpath checker ,xpath的定位路径是正确的。
driver.find_element_by_xpath("//div[@id='map-setting-install-3']/div/div/label/div/div/label[2]").click()
思路: 会不会是没有设置等待的时间,页面还没有来的及显示,在该语句前加上等待3秒
实验: 加了时间等待,没有“Element is not visible”
解决方法:加等待时间就可以了
time.sleep(3)driver.find_element_by_xpath("//div[@id='map-setting-install-3']/div/div/label/div/div/label[2]").click()
0 0
- selenium +Python 测试时报 “Element is not visible”解决方法
- selenium:Element is not visible
- Webdriver Element is not currently visible 解决方法
- python selenium to click an element not visible
- element not visible的解决方法
- Selenium-异常:Element is not currently visible and so may not be interacted with的解决
- selenium webDriver: Element is not currently visible and so may not be interacted with
- Selenium-异常:Element is not currently visible and so may not be interacted with的解决
- org.openqa.selenium.ElementNotVisibleException: element not visible
- selenium错误"element not visible"问题
- Webdriver Element is not currently visible and so may not be interactedwith 解决方法
- Element is not currently visible and so may not be interactedwith 解决方法
- 25、Selenium + Python 实现 UI 自动化测试-unknown error: Element is not clickable at point (x,y)
- java Selenium 发送126邮件 解决element not visible
- WebDriver遇到Element is not currently visible and so ...解决
- selenium报错Element is not clickable at point及四种解决方法
- selenium报错“Element is not clickable at point”及解决方法
- 关于selenium python Message: unknown error: Element is not clickable at point错误
- 百度安全的WAD试用体验报告
- 在HTML中使用JavaScript
- 视图
- iOS之两圆之间标准圆的随机生成
- extern "C"的用法解析
- selenium +Python 测试时报 “Element is not visible”解决方法
- android的消息提示
- Unity3D -- 常用函数和变量(Shader学习之一)
- java容器
- hdu 1800
- maven 本地仓库存在jar包但是项目依旧提示 Failed to read artifact XXX missing artifact XXX的问题
- learnyounode学习笔记(一)
- android UiAutomator一个完整的个人信息修改测试用例
- Excel与Java时间问题: