'How To Auto Log in To any website From csv file with useing selenium and python
I type Like this
from selenium import webdriver
from selenium.webdriver.common.keys import Keys
import time
#stealmylogin
driver = webdriver.Chrome()
driver.get('https://www.stealmylogin.com/demo.html')
time.sleep(5)
driver.find_element_by_name('username').send_keys('[email protected]')
time.sleep(5)
driver.find_element_by_name('password').send_keys('password')
time.sleep(2)
driver.find_element_by_xpath("//input[@value='login']").send_keys(Keys.ENTER)
time.sleep(30)
driver.close
I need to auto Log in from csv that have more than 1K Email an Pasword
also my csv type it`s like this :
Email,password
[email protected] ,ogfl45/
[email protected] ,ogfl45/
[email protected] ,ogfl45/
[email protected] ,ogfl45/
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
| Solution | Source |
|---|
