小编Pyt*_*_09的帖子

Selenium 元素在问题点上不可点击 - Python

我正在使用 selenium 在 python 中编写一个基本的自动化测试。我可以浏览多个页面,但是当我到达这一特定页面时,我无法单击该按钮。

我的测试失败的代码

driver.find_element_by_id('//*[@id="save"]').click()
Run Code Online (Sandbox Code Playgroud)

当我检查我试图单击的按钮时的元素

<input type="submit" value="View Report" id="save" name="save" data-reportid="108">
Run Code Online (Sandbox Code Playgroud)

下面的错误消息

selenium.common.exceptions.ElementClickInterceptedException:消息:元素单击被拦截:元素在点(1750、770)处不可单击。其他元素将收到点击:

...(会话信息:chrome=83.0.4103.116)

selenium selenium-webdriver

1
推荐指数
1
解决办法
9391
查看次数

标签 统计

selenium ×1

selenium-webdriver ×1