I have the following code:
from selenium import webdriver
from selenium.webdriver.chrome.options import Options
import time
options=Options()
driver=webdriver.Chrome(options=options)
driver.get("https://www.theguardian.com/uk")
time.sleep(2)
driver.refresh()
I'd like to be able to do the following with the above code:
1.Go to the url
2.Wait for page to load
3.Refresh page
4.Repeat steps 2 & 3 for 'n' number of times (let us say n=100)