I'm fairly new to developing but I'm having a problem logging into a website. The code I have currently typed in the username, password, and correctly clicks the log in button. However, the page simply refreshes but doesn't actually log in. The web page is using some sort of AWS authentication maybe that's why I'm not getting through, does anyone have any experience getting past this?
Here's the code I have right now:
from selenium import webdriver username = "Username" password = "Password" driver = webdriver.Chrome("locationpath\\chromedriver.exe") driver.get("website") username_textbox = driver.find_element_by_id("signInFormUsername") username_textbox.send_keys(username) password_textbox = driver.find_element_by_id("signInFormPassword") password_textbox.send_keys(password) login_button = driver.find_element_by_name("signInSubmitButton") login_button.submit()