File tree Expand file tree Collapse file tree 2 files changed +5
-1
lines changed Expand file tree Collapse file tree 2 files changed +5
-1
lines changed Original file line number Diff line number Diff line change @@ -339,9 +339,11 @@ def click_on_internal_links_in_header_unauth(self):
339
339
# Click on the 'Contacts', 'Specialists', 'Contributors', 'Used Resources' links
340
340
for link in self .get_list_of_internal_links_in_more ():
341
341
self .click_more_button ()
342
+ current_url = self .get_current_tab_url ()
342
343
link .click ()
343
- time . sleep ( 1 )
344
+ Wait ( self . driver , 10 ). until ( EC . url_changes ( current_url ) )
344
345
opened_pages .append (self .get_current_tab_url ())
346
+ print (* opened_pages , sep = '\n ' ) # Temporarily for debugging
345
347
return opened_pages
346
348
347
349
@allure .step ("""Click on internal links in the Header and thereby open corresponding web pages in the same tab
Original file line number Diff line number Diff line change @@ -150,10 +150,12 @@ def used_resources_page_open(driver, main_page_open):
150
150
def auto_test_user_authorized (driver , main_page_open ):
151
151
page = BasePage (driver )
152
152
page .element_is_present_and_clickable (MainPageLocators .LOGIN_BUTTON ).click ()
153
+ print ("Current URL:" , driver .current_url ) # Temporarily for debugging
153
154
page .element_is_visible (LoginPageLocators .INPUT_LOGIN ).send_keys (os .environ ["LOGIN" ])
154
155
page .element_is_visible (LoginPageLocators .INPUT_PASSWORD ).send_keys (os .environ ["PASSWORD" ])
155
156
page .element_is_present_and_clickable (LoginPageLocators .SIGN_IN_BUTTON ).click ()
156
157
page .check_expected_link (MainPageLinks .URL_GROUPS_PAGE )
158
+ print ("Current URL:" , driver .current_url ) # Temporarily for debugging
157
159
page = ProfilePage (driver )
158
160
page .loader_checking ()
159
161
You can’t perform that action at this time.
0 commit comments