Button not clickable in Selenium Chrome window

限于喜欢 提交于 2021-02-10 06:23:09

问题


I am trying to click a button using Selenium and Python. The very root of this problem that I need to understand is that when Selenium launches the Chrome window the button that I want to click does nothing when clicked. Like if I physically click the button with my mouse nothing happens. It seems to be the only element on the page functioning this way. I can click around other elements on the page and those react just fine. It's almost as if the button becomes "dead" when the browser is opened with Selenium. Note that the button works fine if I navigate to the site in a Chrome browser NOT launched by Selenium.

I also followed the answer here in case the site was somehow detecting Selenium and killing the button due to using Selenium: Can a website detect when you are using selenium with chromedriver? I've also tried my code on half a dozen other sites and I can click buttons just fine.

Anyone ever seen this before? If so, any solution or am I dead like that button is?

来源:https://stackoverflow.com/questions/61639582/button-not-clickable-in-selenium-chrome-window

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!