Apr-23-2018, 12:35 AM
Hi Guys-Right now I'm using Chrome WebDriver to download some files from a URL daily. It usually works, but sometimes the script will open the browser, navigate to the site and even highlight the download icon like its going to download the file, but then it just stalls and I have to click the icon myself. Also, Chrome just seems to run slow. The script is below if anyone wants to take a look.
Has anyone had success using anything other than Chrome to accomplish a task like this? I can continue with what I'm doing and it won't totally mess me up but I'd prefer a method that would cause less headaches. I've included the script if anyone wants to take a look. Thanks in advance for any advice.
Has anyone had success using anything other than Chrome to accomplish a task like this? I can continue with what I'm doing and it won't totally mess me up but I'd prefer a method that would cause less headaches. I've included the script if anyone wants to take a look. Thanks in advance for any advice.
driver = webdriver.Chrome() driver.wait = WebDriverWait(driver, 50) driver.get(bs_url) WebDriverWait(driver,20).until(EC.presence_of_element_located((By.ID,"table_all_pid_"))) WebDriverWait(driver,20).until(EC.element_to_be_clickable((By.ID,"table_all_pid_"))) Stats = driver.find_element_by_id("table_all_pid_").click()