Skip to content

Commit abe158d

Browse files
As per PR 107 comments, Code change is implemented.
1 parent 5595e90 commit abe158d

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

pages/screening_subject_search/record_diagnosis_date_page.py

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,12 @@ def __init__(self, page: Page):
1515
self.save_button = self.page.get_by_role("button", name="Save")
1616

1717
def get_alert_message(self) -> str:
18-
18+
"""
19+
Retrieves the visible alert message from the page, if any.
20+
Returns:
21+
str: The inner text of the alert element if it's visible;
22+
otherwise, an empty string.
23+
"""
1924
self.alert_message = self.page.get_by_role("alert")
2025
if self.alert_message.is_visible():
2126
return self.alert_message.inner_text()

0 commit comments

Comments
 (0)