update sso_url for newest linuxacademy changes

This commit is contained in:
Michael Reber 2020-11-03 18:42:43 +01:00
parent ff1f3d4883
commit cf92bb4c26

View File

@ -97,15 +97,14 @@ def launch_browser(name):
options.add_argument("--window-size=1920,1080")
driver = webdriver.Firefox(options=options)
driver.get("https://linuxacademy.com/")
driver.get("https://linuxacademy.com/cp/ssologin")
return driver
def la_login(driver, args):
link = driver.find_element_by_partial_link_text('Log In')
link.click()
#link = driver.find_element_by_partial_link_text('Log In')
#link.click()
time.sleep(5)
user = driver.find_element_by_name('username')
user.send_keys(args['username'])
password = driver.find_element_by_name('password')