Skip to content

Commit 7009b90

Browse files
author
Konstantinacc
committed
Modified logout function in utils.py file.
Logout now waits for Log in button to be visible.
1 parent 3b3015e commit 7009b90

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

codebender_testing/utils.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -334,6 +334,7 @@ def logout(self):
334334
try:
335335
logout_button = self.driver.find_element_by_id("logout")
336336
logout_button.send_keys(Keys.ENTER)
337+
self.get_element(By.CSS_SELECTOR, '#login_btn')
337338
except NoSuchElementException:
338339
# 'Log out' is not displayed, so we're already logged out.
339340
pass

0 commit comments

Comments
 (0)