@@ -236,7 +236,7 @@ def get_list_of_buttons_auth(self):
236236 header_buttons = all_buttons [:3 ]
237237 header_buttons .append (all_buttons [- 1 ])
238238 att = [element .get_attribute ("type" ) for element in header_buttons ]
239- print (* att , len (att ), sep = '\n ' )
239+ # print(*att, len(att), sep='\n')
240240 return header_buttons
241241 # return self.elements_are_present(self.locators.HEADER_BUTTONS)[:4]
242242
@@ -286,7 +286,7 @@ def get_text_in_direct_links_unauth(self):
286286 for an authorized user""" )
287287 def get_text_in_direct_links_auth (self ):
288288 direct_links_text = [link .text for link in self .get_list_of_direct_links_auth ()[:4 ]]
289- print (* direct_links_text , len (direct_links_text ), sep = '\n ' )
289+ # print(*direct_links_text, len(direct_links_text), sep='\n')
290290 return direct_links_text
291291 # return [link.text for link in self.get_list_of_direct_links_auth()[:5]]
292292
@@ -295,7 +295,7 @@ def get_text_in_direct_links_auth(self):
295295 def get_text_of_links_in_more (self ):
296296 self .click_more_button ()
297297 more_links_text = [link .text for link in self .get_list_of_links_in_more ()]
298- print (* more_links_text , len (more_links_text ), sep = '\n ' )
298+ # print(*more_links_text, len(more_links_text), sep='\n')
299299 return more_links_text
300300 # return [link.text for link in self.get_list_of_links_in_more()]
301301
@@ -331,7 +331,7 @@ def get_links_href_unauth(self):
331331 @allure .step ("Get attribute 'href' of links in the Header for an authorized user" )
332332 def get_links_href_auth (self ):
333333 att = [element .get_attribute ("href" ) for element in self .get_list_of_links_auth ()]
334- print (* att , len (att ), sep = '\n ' )
334+ # print(*att, len(att), sep='\n')
335335 return att
336336 # return [element.get_attribute("href") for element in self.get_list_of_links_auth()]
337337
@@ -386,10 +386,17 @@ def click_on_direct_internal_links_in_header_auth(self):
386386 opened_pages = []
387387 current_url = self .get_current_tab_url ()
388388
389+ # Click on the 'Statistics' link
390+ self .element_is_present_and_clickable (self .locators1 .LINK_STATISTICS_AUTH ).click ()
391+ Wait (self .driver , 10 ).until (EC .url_changes (current_url ))
392+ current_url = self .get_current_tab_url ()
393+ opened_pages .append (current_url )
394+
389395 # Click on the 'Groups' link
390396 self .element_is_present_and_clickable (self .locators1 .LINK_GROUPS_AUTH ).click ()
391397 Wait (self .driver , 10 ).until (EC .url_changes (current_url ))
392- opened_pages .append (self .get_current_tab_url ()) # to be continued
398+ current_url = self .get_current_tab_url ()
399+ opened_pages .append (current_url ) # to be continued
393400 print (opened_pages )
394401
395402 return opened_pages
0 commit comments