![]() The problem is when I use in my company website where the file is generated through a JavaScript action (the click action generate a process windows, at the end the file is asked to be saved). This code works fine in the used above site. Choose the directory where you want to save the zipped file and start the download. I also checked the MIME type by the bellow code and appear right configuraded: import requests Click on 'geckodriver-v0.27.0-linu圆4.tar.gz' to download the Linux 64bit driver. 'application/'īrowser = webdriver.Firefox(profile, options=opts, executable_path=DRIVER_PATH)ītn = browser.find_elements_by_class_name('btn-primary') I tried the Selenium tutorial and other answers here on Stackoverflow but no one give me the expected result.Ībove my profile definition: from selenium import webdriverįrom import Optionsįrom import WebDriverWaitįrom import expected_conditions as ECįrom import By I want to automatic download some XLSX file from a webpage without Firefox ask me for confirmation. I am using the Selenium web browser automatize on Firefox v90 64 bits with Geckodriver v0.29.1 at Ubuntu 20.04.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |