I want to do it in a loops in python: for i in range (x) 1.open site 2. do my instructions 3.close page my code:
PATH = "C:\Program Files (x86)\chromedriver.exe"
driver = webdriver.Chrome(PATH)
for i in range(1,100):
driver.get("google.com")
time.sleep(5)
driver.quit()
time.sleep(5)
and it works but only once, do all once and shows error. What should i do?