so as a side note: Ive tried hacking this with just killing the load after its loaded the page. It seems to be consistent as i need to kill it once for login and kill it 3 times for clipping coupons.
ive tried this
ive also tried:
Ive also tried:
How can you replicate hitting escape to stop it from loading?
ive tried this
webdriver.ActionChains(browser).send_keys(Keys.ESCAPE).perform()but it doesnt seem to stop the loading. However manually hitting escape does work to stop it loading. But the code i believe should replicate that.
ive also tried:
try: browser.set_page_load_timeout(10) browser.get("https://dg.coupons.com/signin/") except Exception: print('time out') webdriver.ActionChains(browser).send_keys(Keys.ESCAPE).perform() webdriver.ActionChains(browser).send_keys(Keys.CONTROL +'Escape')but that doesnt seem to work either.
Ive also tried:
driver.execute_script("window.stop();")but nothing seems to happen.
How can you replicate hitting escape to stop it from loading?
Recommended Tutorials: