Skip to content

Commit 9b233f3

Browse files
committed
added page object module for downloads page
1 parent 2dab159 commit 9b233f3

File tree

1 file changed

+27
-0
lines changed

1 file changed

+27
-0
lines changed
Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
from playwright.sync_api import Page
2+
3+
4+
class ScreeningPractitionerAppointmentsPage:
5+
def __init__(self, page: Page):
6+
self.page = page
7+
# ScreeningPractitionerAppointments Page
8+
self.log_in_page = self.page.get_by_role("button", name="Log in")
9+
self.view_appointments_page = self.page.get_by_role("link", name="View appointments")
10+
self.patients_that_require_page = self.page.get_by_role("link", name="Patients that Require")
11+
12+
13+
def go_to_log_in_page(self):
14+
self.log_in_page.click()
15+
16+
def go_to_view_appointments_page(self):
17+
self.view_appointments_page.click()
18+
19+
def go_to_patients_that_require_page(self):
20+
self.patients_that_require_page.click()
21+
22+
23+
24+
25+
26+
27+

0 commit comments

Comments
 (0)