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()
2626const $document = await page .getDocument ()
2727
2828// query methods are added to prototype of ElementHandle
29- const $form = await document .getByTestId (' my-form' )
29+ const $form = await $ document .getByTestId (' my-form' )
3030// returned elements are ElementHandles too!
3131const $email = await $form .getByLabelText (' Email' )
3232// interact with puppeteer like usual
@@ -43,7 +43,7 @@ const browser = await puppeteer.launch()
4343const page = await browser .newPage ()
4444
4545const $document = await getDocument (page)
46- const $form = await queries .getByTestId (document , ' my-form' )
46+ const $form = await queries .getByTestId ($ document, ' my-form' )
4747// ...
4848```
4949
You can’t perform that action at this time.
0 commit comments