Skip to content

Commit

Permalink
update logout;
Browse files Browse the repository at this point in the history
  • Loading branch information
willguxy committed Jun 13, 2018
1 parent 2a7ee24 commit ab0e3eb
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/helper.py
Original file line number Diff line number Diff line change
Expand Up @@ -88,8 +88,8 @@ def amexLogIn(driver, usr, pwd, emailFieldID='lilo_userName', passFieldID='lilo_


def amexLogOut(driver):
while driver.find_elements_by_xpath('//*[@tabindex="0" and @accesskey="4"]'):
try: driver.find_element_by_xpath('//*[@tabindex="0" and @accesskey="4"]').click()
while driver.find_element_by_xpath('//*[contains(text(), "Log Out")]'):
try: driver.find_element_by_xpath('//*[contains(text(), "Log Out")]').click()
except: pass
time.sleep(1)

Expand Down

0 comments on commit ab0e3eb

Please sign in to comment.