
# https://www.globalsino.com/ICs/
# Upload files with full XPATH when there are "multiple id"

from selenium import webdriver
from selenium.webdriver.common.by import By
import time

driver = webdriver.Chrome(r'C:\usr\local\bin\chromedriver')
time.sleep(2)
driver.implicitly_wait(3)
driver.maximize_window()
time.sleep(2)

driver.get("https://www.filemail.com/share/upload-file")
time.sleep(2)
# Use ID from input if there is
element = driver.find_element(By.XPATH, '/html/body/form/div[3]/div[1]/section[2]/div/div[2]/div[2]/div[4]/div/label[1]/input')
time.sleep(5)

element.send_keys("C:\GlobalSino2\images\matchs2.png")
