Skip to content

Commit f50defc

Browse files
As per PR # 112 review comments, code change is implemented.
1 parent 3e99678 commit f50defc

File tree

1 file changed

+2
-13
lines changed

1 file changed

+2
-13
lines changed

pages/screening_subject_search/subject_spine_retrieval_search_page.py

Lines changed: 2 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -4,12 +4,13 @@
44
from typing import Dict
55
from utils.calendar_picker import CalendarPicker
66

7-
class SpineSearchPage:
7+
class SpineSearchPage(BasePage):
88
"""
99
Page object for the Spine Search screen, enabling demographic searches
1010
and data retrieval from the Spine system.
1111
"""
1212
def __init__(self, page: Page):
13+
super().__init__(page)
1314
self.page = page
1415

1516
# Define locators
@@ -61,18 +62,6 @@ def perform_search(self) -> None:
6162
"""
6263
self.click(self.search_button)
6364

64-
def click(self, locator: Locator) -> None:
65-
"""
66-
Clicks on the specified locator.
67-
68-
Args:
69-
locator (Locator): The Playwright locator to click.
70-
"""
71-
try:
72-
locator.click()
73-
except Exception as e:
74-
print(f"Error clicking on locator: {e}")
75-
7665
def get_spine_alert_message(self) -> str:
7766
"""
7867
Retrieves the text content of a visible spine alert message from the page.

0 commit comments

Comments
 (0)