from selenium import webdriver
from selenium.webdriver.common.by import By
from selenium.webdriver.support.ui import WebDriverWait
from selenium.webdriver.chrome.options import Options
from selenium.webdriver.support import expected_conditions as EC
driver = webdriver.Chrome('/usr/local/Caskroom/chromedriver/chromedriver')
wait = WebDriverWait(driver, 20)
driver.implicitly_wait(10)
driver.get('https://api.engage2learn.org/auth? response_type=token&client_id=esuite&state=cXd5VVlsQkViLWllVkpWLXZFelJfdDFoVTZHT1BkT19WQ3EySGVjQTVsSWNw&redirect_uri=https%3A%2F%2Fesuite.engage2learn.org%2Findex.html&scope=')
email = driver.find_element(By. ID, 'loginform-username')
email.send_keys('email to log in')
password = driver.find_element(By.ID, 'loginform-password')
password.send_keys('password to log in')
driver.find_element(By.CSS_SELECTOR , 'button').click()
wait
Everything works up until the log in process starts and then the page resets to the orginal log in page with all fields cleared. The log in process works manually and their are no bots on the website. But as soon as the automation starts and the site starts to authenticate the log in credentials it resets to the orginal log in page with all fields cleared.