Python中文
首页
教程
问答
标签
搜索
登录
注册
如何修复Python中的“Element not interactiveable”Selenium错误?
回答此问题可获得
20
贡献值,回答如果被采纳可获得
50
分。
<p>我试图单击一个弹出按钮,代码显示错误:</p> <blockquote> <p>"selenium.common.exceptions.ElementNotInteractableException: Message: element not interactable".</p> </blockquote> <p>我已经搜索,但找不到解决方案,我与弹出按钮。在</p> <p><a href="https://i.stack.imgur.com/tjEdo.png" rel="nofollow noreferrer">Image for clicking show 10 rows and displaying the pop-up box</a>所附图像是所需的结果,“Show 10 rows”位于其后面,并且很容易看到。在</p> <p>我有这个在我的HTML代码,需要点击按钮。在</p> <pre><code><div class="table-responsive"> <ul class="nav nav-tabs"> <li class="active"><a data-toggle="tab" id="loadsur" href="#Section" aria-expanded="true">LoadSurvey</a></li> </ul> <div class="container-fluid"> <div class="row"> <div class="col-md-12" style="margin-left: -10px;"> <div class="table-responsive"> <div id="myDataTable25_wrapper" class="dataTables_wrapper no-footer"><div class="dt-buttons"> <button class="dt-button buttons-csv buttons-html5" tabindex="0" aria-controls="myDataTable25"> <span>Csv</span></button> <button class="dt-button buttons-excel buttons-html5" tabindex="0" aria-controls="myDataTable25"> <span>Excel</span></button> <button class="dt-button buttons-collection buttons-page-length" tabindex="0" aria-controls="myDataTable25" aria-haspopup="true"> <span>Show 10 rows</span></button> </div> </div> </div> </div> </div> </code></pre> <p>在Python中,我尝试了以下方法:</p> ^{pr2}$ <p>我希望单击这个按钮,这会导致弹出按钮出现。在</p>
0 条评论
分类:
Python问答
请先
登录
后评论
默认排序
时间排序
1 个回答
匿名
1天前
擅长:python、mysql、java
<p>我找到了解决这个问题的办法。xpath中的链接出错。我后来从html中复制并粘贴,现在代码如下:</p> <pre><code>Show10 = find_element_by_xpath("//*[@id='myDataTable2_wrapper']/div[1]/button[7]/span") Show10.click() </code></pre> <p>而且效果很好。谢谢大家的帮助。在</p>
请先
登录
后评论
针对此问题:
更多的回答
关注
89
关注
收藏
1
收藏,
216
浏览
网友 提问于 2天前
相关Python问题
无法使用Django/mongoengine连接到MongoDB(身份验证失败)
3 回答
无法使用Django\u mssql\u后端迁移到外部hos
4 回答
无法使用Django&Python3.4连接到MySql
1 回答
无法使用Django+nginx上载媒体文件
1 回答
无法使用Django1.6导入名称模式
1 回答
无法使用Django1.7和mongodb登录管理站点
6 回答
无法使用Djangoadmin创建项目,进程使用了错误的路径,因为我事先安装了错误的Python
9 回答
无法使用Djangockedi验证CBV中的字段
6 回答
无法使用Djangocketditor上载图像(错误400)
8 回答
无法使用Djangocron进行函数调用
4 回答
无法使用Djangofiler djang上载文件
5 回答
无法使用Djangokronos
9 回答
无法使用Djangomssql provid
10 回答
无法使用Djangomssql连接到带有Django 1.11的MS SQL Server 2016
6 回答
无法使用Djangomssq迁移Django数据库
8 回答
无法使用Djangonox创建用户
3 回答
无法使用Djangopyodb从Django查询SQL Server
8 回答
无法使用Djangopython3ldap连接到ldap
8 回答
无法使用Djangoredis连接到redis
8 回答
无法使用Django中的FK创建新表
10 回答