We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 631dd12 commit d25c69dCopy full SHA for d25c69d
README.md
@@ -26,7 +26,7 @@ const page = await browser.newPage()
26
const $document = await page.getDocument()
27
28
// query methods are added to prototype of ElementHandle
29
-const $form = await document.getByTestId('my-form')
+const $form = await $document.getByTestId('my-form')
30
// returned elements are ElementHandles too!
31
const $email = await $form.getByLabelText('Email')
32
// interact with puppeteer like usual
@@ -43,7 +43,7 @@ const browser = await puppeteer.launch()
43
const page = await browser.newPage()
44
45
const $document = await getDocument(page)
46
-const $form = await queries.getByTestId(document, 'my-form')
+const $form = await queries.getByTestId($document, 'my-form')
47
// ...
48
```
49
0 commit comments