python-3.x - Selenium 与 Python - send_keys 输入文本但随后立即清除文本.....不知道为什么
问题描述
我希望有人能帮帮忙。我什么都试过了。首先,我根本无法输入文本,并意识到我必须先切换到框架(没有 id 或名称,所以我必须使用索引 4)。
然后我可以看到文本被输入到我的所有字段中,然后很快被清除。我的代码中没有任何东西可以做到这一点。
有人知道如何解决这种行为吗?
driver.switch_to.frame(4)
driver.implicitly_wait(5)
driver.find_element_by_name("ctl00$Content$ucxList$txtSearchByTextSearchByEventExRef").send_keys("bump this up!");
driver.implicitly_wait(5)
driver.find_element_by_name("ctl00$Content$ucxList$txtSearchByTextSearchByEventName").send_keys("bump this up!");
`
解决方案
推荐阅读
- reactjs - npm start 在编译期间抛出错误
- java - 如何从android中的url解析json
- scikit-learn - Sklearn:线性回归
- java - 如何使用 Selenium 和 Java 定位并单击选择布尔复选框
- ios - UITesting 只是失败了,没有更多的上下文就没有编写测试
- c++ - 结果不是我所期望的
- linux - Gentoo中没有无线连接
- c++ - 安装斯坦福 C++ 库(图形、BasicGraph 类)时遇到问题
- regex - 正则表达式如何匹配 dd mmm yyyy 以仅选择年份的前两位数字
- google-maps - Pass Pins values to next page