Skip to content

Commit bba1d60

Browse files
updated view contacts page
1 parent 89c05b5 commit bba1d60

File tree

1 file changed

+14
-4
lines changed

1 file changed

+14
-4
lines changed

pages/contacts_list/view_contacts_page.py

Lines changed: 14 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
1-
from playwright.sync_api import Page, expect
1+
import logging
2+
from playwright.sync_api import Page
23
from pages.base_page import BasePage
34

45

@@ -12,6 +13,15 @@ def __init__(self, page: Page):
1213

1314
def verify_view_contacts_title(self) -> None:
1415
"""Verify the View Contacts page title is displayed correctly"""
15-
self.bowel_cancer_screening_page_title_contains_text(
16-
"View Contacts"
17-
)
16+
self.bowel_cancer_screening_page_title_contains_text("View Contacts")
17+
18+
def search_by_job_role_and_organisation_code(
19+
self, job_role: str, org_code: str
20+
) -> None:
21+
"""
22+
search by provided job role and organisation
23+
"""
24+
self.page.locator('input[name="selJobRole"]').fill(job_role)
25+
self.page.locator('input[name="selOrganisationCode"]').fill(org_code)
26+
self.page.get_by_role("button", name="Search").click()
27+
logging.info(f"input {job_role} and {org_code} and click on search")

0 commit comments

Comments
 (0)