from selenium import webdriver
from selenium.webdriver.chrome.options import Options
from Tools.Path import path_to_driver
from time import sleep


options = Options()
options.add_experimental_option('prefs', {'download.default_directory': 'C:\Worm4\\asd'})
driver = webdriver.Chrome(path_to_driver, chrome_options=options)
driver.get('http://demo.automationtesting.in/FileDownload.html')

driver.find_element_by_id('textbox').send_keys('test test test')
driver.find_element_by_id('createTxt').click()
driver.find_element_by_id('link-to-download').click()

sleep(1)
driver.quit()

f4045af016d1ad9db7eaa05611c58b5dcc087bf5
<mask token>

<mask token>
options.add_experimental_option('prefs', {'download.default_directory':
    'C:\\Worm4\\asd'})
<mask token>
driver.get('http://demo.automationtesting.in/FileDownload.html')
driver.find_element_by_id('textbox').send_keys('test test test')
driver.find_element_by_id('createTxt').click()
driver.find_element_by_id('link-to-download').click()
sleep(1)
driver.quit()

<mask token>
options = Options()
options.add_experimental_option('prefs', {'download.default_directory':
    'C:\\Worm4\\asd'})
driver = webdriver.Chrome(path_to_driver, chrome_options=options)
driver.get('http://demo.automationtesting.in/FileDownload.html')
driver.find_element_by_id('textbox').send_keys('test test test')
driver.find_element_by_id('createTxt').click()
driver.find_element_by_id('link-to-download').click()
sleep(1)
driver.quit()

from selenium import webdriver
from selenium.webdriver.chrome.options import Options
from Tools.Path import path_to_driver
from time import sleep
options = Options()
options.add_experimental_option('prefs', {'download.default_directory':
    'C:\\Worm4\\asd'})
driver = webdriver.Chrome(path_to_driver, chrome_options=options)
driver.get('http://demo.automationtesting.in/FileDownload.html')
driver.find_element_by_id('textbox').send_keys('test test test')
driver.find_element_by_id('createTxt').click()
driver.find_element_by_id('link-to-download').click()
sleep(1)
driver.quit()

from selenium import webdriver
from selenium.webdriver.chrome.options import Options
from Tools.Path import path_to_driver
from time import sleep


options = Options()
options.add_experimental_option('prefs', {'download.default_directory': 'C:\Worm4\\asd'})
driver = webdriver.Chrome(path_to_driver, chrome_options=options)
driver.get('http://demo.automationtesting.in/FileDownload.html')

driver.find_element_by_id('textbox').send_keys('test test test')
driver.find_element_by_id('createTxt').click()
driver.find_element_by_id('link-to-download').click()

sleep(1)
driver.quit()
