Skip to content

Commit 07849c1

Browse files
committed
Addressing merge conflicts
1 parent 31e1aa8 commit 07849c1

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

pages/base_page.py

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -133,3 +133,11 @@ def click(self, locator) -> None:
133133
except Exception as locatorClickError:
134134
logging.warning(f"Failed to click element with error: {locatorClickError}, trying again...")
135135
locator.click()
136+
137+
def bowel_cancer_screening_page_title_contains_text(self, text: str) -> None:
138+
"""Asserts that the page title contains the specified text.
139+
140+
Args:
141+
text (str): The expected text that you want to assert for the page title ("#ntshPageTitle") element.
142+
"""
143+
expect(self.bowel_cancer_screening_page_header).to_contain_text(text)

0 commit comments

Comments
 (0)