diff --git a/python/docs/api/class-locator.mdx b/python/docs/api/class-locator.mdx index bb2976d3c48..9086442a086 100644 --- a/python/docs/api/class-locator.mdx +++ b/python/docs/api/class-locator.mdx @@ -170,14 +170,14 @@ The following example finds a button with a specific title. ```py -button = page.get_by_role("button").and_(page.getByTitle("Subscribe")) +button = page.get_by_role("button").and_(page.get_by_title("Subscribe")) ``` ```py -button = page.get_by_role("button").and_(page.getByTitle("Subscribe")) +button = page.get_by_role("button").and_(page.get_by_title("Subscribe")) ```