@@ -20,6 +20,7 @@ def search(self):
2020 self .safari_workaround ()
2121 self .wait_for_navigation_to_complete ()
2222 # More flexible text matching for search page
23+ self .wait_on_class ('content_title' )
2324 content_title = self .by_class ('content_title' )
2425 title_text = content_title .text .strip ()
2526 print (f"MESSAGES FOUND: '{ title_text } '" )
@@ -167,18 +168,18 @@ def servers_page(self):
167168 try :
168169 # Try to expand settings menu first
169170 self .wait_for_settings_to_expand ()
170-
171+
171172 # Add a small delay to ensure the menu is fully expanded
172173 import time
173174 time .sleep (0.5 )
174-
175+
175176 list_item = self .by_class ('menu_servers' )
176177 link = list_item .find_element (By .TAG_NAME , 'a' )
177-
178+
178179 # Try to scroll the element into view and wait a bit more
179180 self .driver .execute_script ("arguments[0].scrollIntoView({block: 'center'});" , link )
180181 time .sleep (0.5 )
181-
182+
182183 self .click_when_clickable (link )
183184 self .wait_with_folder_list ()
184185 self .safari_workaround ()
@@ -198,18 +199,18 @@ def site(self):
198199 try :
199200 # Try to expand settings menu first
200201 self .wait_for_settings_to_expand ()
201-
202+
202203 # Add a small delay to ensure the menu is fully expanded
203204 import time
204205 time .sleep (0.5 )
205-
206- list_item = self .by_class ('menu_site ' )
206+
207+ list_item = self .by_class ('menu_settings ' )
207208 link = list_item .find_element (By .TAG_NAME , 'a' )
208-
209+
209210 # Try to scroll the element into view and wait a bit more
210211 self .driver .execute_script ("arguments[0].scrollIntoView({block: 'center'});" , link )
211212 time .sleep (0.5 )
212-
213+
213214 self .click_when_clickable (link )
214215 self .wait_with_folder_list ()
215216 self .safari_workaround ()
@@ -218,8 +219,8 @@ def site(self):
218219 except Exception as e :
219220 print (f" - site test failed: { e } " )
220221 # Check if the element exists
221- if not self .element_exists ('menu_site ' ):
222- print (" - menu_site element not found" )
222+ if not self .element_exists ('menu_settings ' ):
223+ print (" - menu_settings element not found" )
223224 return
224225 raise e
225226
@@ -273,18 +274,18 @@ def save(self):
273274 try :
274275 # Try to expand settings menu first
275276 self .wait_for_settings_to_expand ()
276-
277+
277278 # Add a small delay to ensure the menu is fully expanded
278279 import time
279280 time .sleep (0.5 )
280-
281+
281282 list_item = self .by_class ('menu_save' )
282283 link = list_item .find_element (By .TAG_NAME , 'a' )
283-
284+
284285 # Try to scroll the element into view and wait a bit more
285286 self .driver .execute_script ("arguments[0].scrollIntoView({block: 'center'});" , link )
286287 time .sleep (0.5 )
287-
288+
288289 self .click_when_clickable (link )
289290 self .wait_with_folder_list ()
290291 self .safari_workaround ()
@@ -304,18 +305,18 @@ def password(self):
304305 try :
305306 # Try to expand settings menu first
306307 self .wait_for_settings_to_expand ()
307-
308+
308309 # Add a small delay to ensure the menu is fully expanded
309310 import time
310311 time .sleep (0.5 )
311-
312+
312313 list_item = self .by_class ('menu_change_password' )
313314 link = list_item .find_element (By .TAG_NAME , 'a' )
314-
315+
315316 # Try to scroll the element into view and wait a bit more
316317 self .driver .execute_script ("arguments[0].scrollIntoView({block: 'center'});" , link )
317318 time .sleep (0.5 )
318-
319+
319320 self .click_when_clickable (link )
320321 self .wait_with_folder_list ()
321322 self .safari_workaround ()
@@ -335,18 +336,18 @@ def profiles(self):
335336 try :
336337 # Try to expand settings menu first
337338 self .wait_for_settings_to_expand ()
338-
339+
339340 # Add a small delay to ensure the menu is fully expanded
340341 import time
341342 time .sleep (0.5 )
342-
343+
343344 list_item = self .by_class ('menu_profiles' )
344345 link = list_item .find_element (By .TAG_NAME , 'a' )
345-
346+
346347 # Try to scroll the element into view and wait a bit more
347348 self .driver .execute_script ("arguments[0].scrollIntoView({block: 'center'});" , link )
348349 time .sleep (0.5 )
349-
350+
350351 self .click_when_clickable (link )
351352 self .wait_with_folder_list ()
352353 self .safari_workaround ()
@@ -361,4 +362,5 @@ def profiles(self):
361362 raise e
362363
363364if __name__ == '__main__' :
365+ print ("PAGES TEST" )
364366 test_runner (PageTests )
0 commit comments