logging in with selenium
driver.get (“URL”)
driver.find_element_by_id(“ID”).send_keys(“username”)
driver.find_element_by_id (“ID”).send_keys(“password”)
driver.find_element_by_id(“submit”).click()
logging in with selenium
driver.get (“URL”)
driver.find_element_by_id(“ID”).send_keys(“username”)
driver.find_element_by_id (“ID”).send_keys(“password”)
driver.find_element_by_id(“submit”).click()
selenium login to website
# Dependencies
from selenium import webdriver
driver = webdriver.Chrome()
# Target page
driver.get("https://ilovefluffycats.com/authentication/signon")
assert "cats" in driver.title
# Complete username
username = driver.find_element_by_id("uid")
username.clear()
username.send_keys("mrcats")
# Complete password
password = driver.find_element_by_name("pwd")
password.clear()
password.send_keys("catskillz")
# Click login
driver.find_element_by_name("submitButton").click()
# Also possible to click by text
# driver.find_element_by_link_text("Grumpy cats").click()
Copyright © 2021 Codeinu
Forgot your account's password or having trouble logging into your Account? Don't worry, we'll help you to get back your account. Enter your email address and we'll send you a recovery link to reset your password. If you are experiencing problems resetting your password contact us