I want to call multiple files by importing a text file(or csv?) and run selenium tests over until all the inputs are finished. Normally, browser would just close after just running one.
Say, I have input below in a text file. I have to replace driver.get portion and select by visible text portion with below from text file.
sampletest-x1
sampletest-x2
sampletest-x3
sampletest-x4
Selenium
driver = webdriver.Firefox()
driver.get("http://username:password@1.1.1.1:80/sampletest-x1")
select = Select(driver.find_element_by_id('ele_id'))
select.select_by_visible_text('sampletest-x1')
driver.close();