TT#70901 selenium: fix up logout_csc function

logout_csc was not working at all, fixing it

Change-Id: I96fbae6e9577f287683fa6f9586242fe7bd72d03
mr10.0
Nico Schedel 4 years ago
parent 5b13af5811
commit 9d1ad4501d

@ -17,8 +17,9 @@ def login_csc(driver, name, pwd):
def logout_csc(driver):
WebDriverWait(driver, 10).until(EC.element_to_be_clickable((By.XPATH, '//*[@id="csc-header-toolbar"]/div[1]/button')))
driver.find_element_by_xpath('//*[@id="csc-header-toolbar"]/div[1]/button').click()
WebDriverWait(driver, 10).until(EC.element_to_be_clickable((By.XPATH, '//*[@id="csc-header-toolbar-main"]/button[2]')))
driver.find_element_by_xpath('//*[@id="csc-header-toolbar-main"]/button[2]').click()
scroll_to_element(driver, '/html/body//div[contains(text(), "Logout")]')
driver.find_element_by_xpath('/html/body//div[contains(text(), "Logout")]').click()

Loading…
Cancel
Save