File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -49,6 +49,7 @@ class HeaderAuthorizedLocators:
4949 HEADER_LINKS_AUTH = (By .XPATH , "//nav//a" )
5050 HEADER_ICONS = (By .XPATH , "//nav//*[name()='svg']" )
5151 HEADPHONE_ICON = (By .XPATH , "(//nav//*[name()='svg'])[2]" )
52+ LINK_ABOUT_AUTH = (By .XPATH , "(//nav//a)[4]" )
5253 LINK_GROUPS_AUTH = (By .XPATH , "(//nav//a)[2]" )
5354 LINK_STATISTICS_AUTH = (By .XPATH , "(//nav//a)[3]" )
5455 LINK_PROFILE = (By .XPATH , "(//nav//a)[12]" )
Original file line number Diff line number Diff line change @@ -396,6 +396,12 @@ def click_on_direct_internal_links_in_header_auth(self):
396396 self .element_is_present_and_clickable (self .locators1 .LINK_GROUPS_AUTH ).click ()
397397 Wait (self .driver , 10 ).until (EC .url_changes (current_url ))
398398 current_url = self .get_current_tab_url ()
399+ opened_pages .append (current_url )
400+
401+ # Click on the 'About' link
402+ self .element_is_present_and_clickable (self .locators1 .LINK_ABOUT_AUTH ).click ()
403+ Wait (self .driver , 10 ).until (EC .url_changes (current_url ))
404+ current_url = self .get_current_tab_url ()
399405 opened_pages .append (current_url ) # to be continued
400406 print (opened_pages )
401407
You can’t perform that action at this time.
0 commit comments