[SOLVED] How to create a for-loop in relation to value obtained via Selenium

Issue Variables chrome_path = ‘chromedriver’ driver = webdriver.Chrome(chrome_path) chrome_options = webdriver.ChromeOptions() chrome_options.add_argument("–disable-popup-blocking") driver.get("https://gibiru.com/") driver.find_element(By.CSS_SELECTOR, ‘.form-control.has-feedback.has-clear’).click() driver.find_element(By.CSS_SELECTOR, ‘.form-control.has-feedback.has-clear’).send_keys("lfc") driver.find_element(By.CSS_SELECTOR, ‘.form-control.has-feedback.has-clear’).send_keys(Keys.RETURN) driver.find_element(By.XPATH, "/html/body/div[1]/main/div[1]/div/div/div/div[2]").click() time.sleep(2) I have this try-stratement, which works perfect, but needs to be looped arcordding to the value of page_length,

Continue reading