Skip to content

Commit

Permalink
Update expect-puppeteer/README.md fix example code (#370)
Browse files Browse the repository at this point in the history
:nth-child() uses 1-based indexing
  • Loading branch information
ericleong authored Apr 8, 2021
1 parent c0559d2 commit a7b5693
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/expect-puppeteer/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -172,7 +172,7 @@ Expect an element be present in the page or element.
// Select a row containing a text
const row = await expect(page).toMatchElement('tr', { text: 'My row' })
// Click on the third column link
await expect(row).toClick('td:nth-child(2) a')
await expect(row).toClick('td:nth-child(3) a')
```

### <a name="toSelect"></a>expect(instance).toSelect(selector, valueOrText)
Expand Down

0 comments on commit a7b5693

Please sign in to comment.