Skip to content

Commit 5217399

Browse files
authored
docs(locators): Fix wrong python api usage (microsoft#39524)
Signed-off-by: WEGFan <wegfan@weg.fan>
1 parent 23d9899 commit 5217399

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

docs/src/locators.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1207,10 +1207,10 @@ const button = page.getByRole('button').and(page.getByTitle('Subscribe'));
12071207
Locator button = page.getByRole(AriaRole.BUTTON).and(page.getByTitle("Subscribe"));
12081208
```
12091209
```python async
1210-
button = page.get_by_role("button").and_(page.getByTitle("Subscribe"))
1210+
button = page.get_by_role("button").and_(page.get_by_title("Subscribe"))
12111211
```
12121212
```python sync
1213-
button = page.get_by_role("button").and_(page.getByTitle("Subscribe"))
1213+
button = page.get_by_role("button").and_(page.get_by_title("Subscribe"))
12141214
```
12151215
```csharp
12161216
var button = page.GetByRole(AriaRole.Button).And(page.GetByTitle("Subscribe"));

0 commit comments

Comments
 (0)