How to force webpage to stop loading to click a button?

Sometimes, when automating a webpage with Selenium, a script on the page or another reason prevents the webpage from loading in a timely fashion, preventing Selenium from accessing its elements such as buttons that we’d like to interact with. In the code sample below, we solve this problem by replicating user interaction with the webpage…
Read more


0