Skip to content

Commit 0fb8027

Browse files
papple23gpapple23g
andauthored
docs: fix Python method name in Locator.and example (#37251)
Co-authored-by: papple23g <[email protected]>
1 parent 27194da commit 0fb8027

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

docs/src/api/class-locator.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -133,11 +133,11 @@ Locator button = page.getByRole(AriaRole.BUTTON).and(page.getByTitle("Subscribe"
133133
```
134134

135135
```python async
136-
button = page.get_by_role("button").and_(page.getByTitle("Subscribe"))
136+
button = page.get_by_role("button").and_(page.get_by_title("Subscribe"))
137137
```
138138

139139
```python sync
140-
button = page.get_by_role("button").and_(page.getByTitle("Subscribe"))
140+
button = page.get_by_role("button").and_(page.get_by_title("Subscribe"))
141141
```
142142

143143
```csharp

0 commit comments

Comments
 (0)