【发布时间】:2021-08-14 14:02:42
【问题描述】:
我正在尝试从此按钮检索数据,但它引发了以下错误:selenium.common.exceptions.ElementNotInteractableException: Message: element not interactable。
按钮源代码:
<button class="Blockreact__Block-sc-1xf18x6-0 Buttonreact__StyledButton-sc-glfma3-0 bqHBns jFqMrE ActionButtonreact__StyledButton-sc-7jpoey-0" type="button"><div class="Blockreact__Block-sc-1xf18x6-0 Flexreact__Flex-sc-1twd32i-0 olSpy jYqxGr"><i value="add" size="24" class="Iconreact__Icon-sc-1gugx8q-0 irnoQt material-icons">add</i></div></button>
我的代码:
browser.find_element_by_xpath("//button[@type='button']")
页面:在https://opensea.io/asset/create上添加项目
【问题讨论】:
-
您的浏览器是否全屏启动?
-
不,我没有尝试全屏。我应该吗?
-
是的,试试它可能会解决您的问题
-
即使 selenium 的其他功能有效?
-
尝试使用
full xpath;告诉我结果
标签: python python-3.x selenium selenium-chromedriver