How to insert the username and password in any login website? Below is my code:
from selenium import webdriver
from selenium.webdriver.common.keys import Keys
chromedriver = 'D:\\chromedriver.exe'
page = webdriver.Chrome(chromedriver)
page.get('http://www.abc.com')
username = Select(page.find_element_by_name('username'))
password = Select(page.find_element_by_name('password'))
username.select_by_visible_text("text")
password.select_by_visible_text("text")