I'd like to input files from a folder into a website. I was able to input one file but I want to input a file from a folder, run the online job, then input another file from the same folder until all the jobs are submitted. Here's my code for one file input.
from selenium import webdriver
url = "http://www.example.com"
email = "[email protected]"
data = open ("file.txt","r").read()
title = data[16:22].replace("|","")
driver = webdriver.Chrome(executable_path='path_to/chromedriver.exe')
emailid = driver.find_element_by_name("email_address")
job = driver.find_element_by_name("job_title")
submit = driver.find_element_by_name("protein_sequence")
You can try using mechanize, something like this
br.back() and repeat the process.