1

I made a script from a tutorial that can login to a website, but in a way that a script open the website. I want that the script is run in an already open website and not the script open the site. I hope it's understandable. I created another script with subprocess and I want to combine those two together. I tried to first open the tabs and then run the login script, but the login script is opening a new window and don't run in the opened one

 url = "www.example.com"

driver = webdriver.Firefox(executable_path="C:\\***\\***\\***\\geckodriver.exe")

driver.get(url)

driver.find_element_by_name('nev').send_keys(username)
driver.find_element_by_name('pass').send_keys(password)

time.sleep(1)

driver.find_element_by_class_name('submit_btn').click()
Rammer
  • 11
  • 2

0 Answers0