Last active
September 28, 2022 16:03
-
-
Save SarahElson/1579e574171f060a0252bd776e0daf76 to your computer and use it in GitHub Desktop.
How To Download File Using Selenium Python?
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
from selenium.webdriver.common.by import By | |
class SeleniumPlaygroundPageLocators(object): | |
#locators | |
file_download = (By.XPATH, '//li[.="File Download"]') | |
data_field = (By.XPATH, '//*[@id="textbox"]') | |
generate_file = (By.ID, 'create') | |
download_button = (By.XPATH, '//*[@id="link-to-download"]') |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment