-
-
Save rahulmr/f445a960d8bba464aee27f9c98ed4dba 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