File tree Expand file tree Collapse file tree 1 file changed +10
-0
lines changed
app/selenium_ui/confluence/pages Expand file tree Collapse file tree 1 file changed +10
-0
lines changed Original file line number Diff line number Diff line change @@ -19,6 +19,10 @@ def wait_for_page_loaded(self):
19
19
if not self .get_elements (LoginPageLocators .login_button ):
20
20
self .is_2sv_login = True
21
21
print ("INFO: 2sv login form" )
22
+ self .wait_until_visible (LoginPageLocators .login_username_field_2sv )
23
+ else :
24
+ print ("INFO: legacy login form" )
25
+ self .wait_until_visible (LoginPageLocators .login_username_field )
22
26
23
27
def set_credentials (self , username , password ):
24
28
if self .is_2sv_login :
@@ -71,6 +75,12 @@ class Logout(BasePage):
71
75
72
76
def wait_for_logout (self ):
73
77
self .wait_until_visible (LoginPageLocators .sidebar )
78
+ if not self .get_elements (LoginPageLocators .login_button ):
79
+ print ("INFO: 2sv login form" )
80
+ self .wait_until_visible (LoginPageLocators .login_username_field_2sv )
81
+ else :
82
+ print ("INFO: legacy login form" )
83
+ self .wait_until_visible (LoginPageLocators .login_username_field )
74
84
75
85
76
86
class AllUpdates (BasePage ):
You can’t perform that action at this time.
0 commit comments