File tree Expand file tree Collapse file tree 1 file changed +14
-4
lines changed
Expand file tree Collapse file tree 1 file changed +14
-4
lines changed Original file line number Diff line number Diff line change 1- from playwright .sync_api import Page , expect
1+ import logging
2+ from playwright .sync_api import Page
23from 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" )
You can’t perform that action at this time.
0 commit comments