AirtestProject / AirtestProject/AirtestIDE
利用airtest录制selenium测试脚本demo,报错'WebElement' object has no attribute '_w3c'
- Dominant language
- No language data
- Stars
- 236
- Forks
- 40
- PR merge metrics
- No merged PRs in 30d
Description
(请尽量按照下面提示内容填写,有助于我们快速定位和解决问题,感谢配合。**否则直接关闭。**)
**(重要!根据问题类型选择分类)**
* 测试开发环境AirtestIDE使用问题(本软件) -> 本页面
**详细描述问题bug:**
bug描述
**复现步骤:**
随意录制一个web页面的点击输入功能作为测试脚本,可以正常调起浏览器,但是运行脚本阶段报错
脚本如下
from selenium import webdriver
from selenium.webdriver.common.keys import Keys
from airtest_selenium.proxy import WebChrome
driver = WebChrome()
driver.implicitly_wait(20)
driver.get("http://test.platform.kachexiongdi.com/")
driver.find_element_by_xpath("//input[@placeholder='请输入用户名']").click() # 这里报错,无法执行脚本
driver.find_element_by_xpath("//input[@placeholder='请输入用户名']").send_keys("13171521557")
******
**python 版本:** `python3.9`
**操作系统:** `Windows10 64bit`
- (别的信息)
- 所需第三方包均已导入,浏览器可调起,但是无法运行录制脚本
**其他相关信息补充**
(在windows 10上运行异常,python为3.9,在mac上正常,python为2.9。)
- AirtestIDE版本号:v1.2.12
**截屏**
强烈建议带上截图,包括IDE本身的截图和后面的黑窗口的报错信息的截图(尽量完整)。


Contributor guide
No contributing guide indexed for this repository
Assessment
This issue has not been assessed yet.