@@ -22,6 +22,7 @@ def search(self):
2222 # More flexible text matching for search page
2323 content_title = self .by_class ('content_title' )
2424 title_text = content_title .text .strip ()
25+ print (f"MESSAGES FOUND: '{ title_text } '" )
2526 assert 'Search' in title_text or 'search' in title_text .lower (), f"Expected 'Search' in title, got: '{ title_text } '"
2627
2728 def sent (self ):
@@ -87,16 +88,9 @@ def flagged(self):
8788 self .wait_with_folder_list ()
8889 self .safari_workaround ()
8990 self .wait_for_navigation_to_complete ()
90- # Look for mailbox_list_title inside content_title
91- try :
92- mailbox_title = self .by_class ('mailbox_list_title' )
93- title_text = mailbox_title .text .strip ()
94- assert 'Flagged' in title_text , f"Expected 'Flagged' in mailbox title, got: '{ title_text } '"
95- except :
96- # Fallback: check content_title for flagged-related text
97- content_title = self .by_class ('content_title' )
98- title_text = content_title .text .strip ()
99- assert 'Flagged' in title_text , f"Expected 'Flagged' in content title, got: '{ title_text } '"
91+ mailbox_title = self .by_class ('mailbox_list_title' )
92+ title_text = mailbox_title .text .strip ()
93+ assert 'Flagged' in title_text , f"Expected 'Flagged' in mailbox title, got: '{ title_text } '"
10094
10195 def contacts (self ):
10296 if not self .mod_active ('contacts' ):
@@ -138,7 +132,7 @@ def calendar(self):
138132 # Try calendar_content_title first, then fallback to content_title
139133 try :
140134 calendar_title = self .by_class ('calendar_content_title' )
141- title_text = calendar_title .text . strip ()
135+ title_text = calendar_title .text
142136 assert 'Calendar' in title_text , f"Expected 'Calendar' in calendar title, got: '{ title_text } '"
143137 except :
144138 # Fallback: check content_title for calendar-related text
0 commit comments