File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -26,7 +26,7 @@ const page = await browser.newPage()
26
26
const $document = await page .getDocument ()
27
27
28
28
// query methods are added to prototype of ElementHandle
29
- const $form = await document .getByTestId (' my-form' )
29
+ const $form = await $ document .getByTestId (' my-form' )
30
30
// returned elements are ElementHandles too!
31
31
const $email = await $form .getByLabelText (' Email' )
32
32
// interact with puppeteer like usual
@@ -43,7 +43,7 @@ const browser = await puppeteer.launch()
43
43
const page = await browser .newPage ()
44
44
45
45
const $document = await getDocument (page)
46
- const $form = await queries .getByTestId (document , ' my-form' )
46
+ const $form = await queries .getByTestId ($ document, ' my-form' )
47
47
// ...
48
48
```
49
49
You can’t perform that action at this time.
0 commit comments