@@ -76,10 +76,6 @@ def check_elements_invisibility_on_6th_level_in_header(self):
7676 def get_list_of_links_unauth (self ):
7777 return self .elements_are_present (self .locators .HEADER_LINKS_UNAUTH )
7878
79- @allure .step ("Get the list of links on different levels of nesting in the Header for an authorized user -- ACTUAL" )
80- def get_links_auth_list (self ):
81- return self .elements_are_present (self .locators1 .HEADER_LINKS_AUTH )
82-
8379 @allure .step ("""Get the list of the 'About', 'Telegram', 'Registration', 'Logo' links (direct links) in the Header
8480 for an unauthorized user""" )
8581 def get_list_of_direct_links_unauth (self ):
@@ -89,6 +85,13 @@ def get_list_of_direct_links_unauth(self):
8985 direct_links .append (links [i ])
9086 return direct_links
9187
88+
89+ # Lists of links for an AUTHORIZED user
90+
91+ @allure .step ("Get the list of links on different levels of nesting in the Header for an authorized user -- ACTUAL" )
92+ def get_links_auth_list (self ):
93+ return self .elements_are_present (self .locators1 .HEADER_LINKS_AUTH )
94+
9295 @allure .step ("""Get the list of the 'Groups', 'Statistics' (x2), 'About', 'Telegram', 'Profile', 'Logo' links
9396 (direct links) in the Header for an AUTHORIZED user -- ACTUAL""" )
9497 def get_direct_links_auth_list (self ):
@@ -111,6 +114,13 @@ def get_direct_internal_links_auth_list(self):
111114 print (* att2 , len (att2 ), sep = '\n ' )
112115 return direct_internal_links
113116
117+ @allure .step ("""Get the list of links in the 'More' dropdown in the Header for an AUTHORIZED user""" )
118+ def get_dropdown_links_auth_list (self ):
119+ dropdown_auth_links = self .elements_are_present (self .locators1 .DROPDOWN_LINKS_AUTH )
120+ att1 = [element .get_attribute ("href" ) for element in dropdown_auth_links ]
121+ print (* att1 , len (att1 ), sep = '\n ' )
122+ return dropdown_auth_links
123+
114124
115125 @allure .step ("Check the 'About', 'Telegram', 'Registration', 'Logo' links are visible for an unauthorized user" )
116126 def check_direct_links_visibility_unauth (self ):
0 commit comments