I searched online, but couldn't find anything about how to stop page loading over a browser using selenium web-driver.
Any idea for the same?
|
|
If you want to simulate the browser's STOP button, this post should help you out http://stackoverflow.com/questions/5453423/how-to-stop-the-page-loading-in-firefox-programaticaly |
|||
|
|
There were a few possible solutions to this over on Stackoverflow on Stop browser load from selenium webdriver. This included: |
|||
|
|
|
Here is a function you may call to set the page load timeout you need. |
|||
|
|