Skip to content

Commit

Permalink
Update getPuppeteer.ts documentation (#7741)
Browse files Browse the repository at this point in the history
* Update getPuppeteer.ts

* Update packages/webdriverio/src/commands/browser/getPuppeteer.ts

Co-authored-by: Christian Bromann <git@bromann.dev>
  • Loading branch information
LilyAita and christian-bromann committed Nov 23, 2021
1 parent 6fe38d7 commit ac07a39
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/webdriverio/src/commands/browser/getPuppeteer.ts
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ const log = logger('webdriverio')
const puppeteerBrowser = await browser.getPuppeteer()
// switch to Puppeteer
const metrics = await browser.call(async () => {
await pages = await puppeteerBrowser.pages()
const pages = await puppeteerBrowser.pages()
pages[0].setGeolocation({ latitude: 59.95, longitude: 30.31667 })
return pages[0].metrics()
})
Expand Down

0 comments on commit ac07a39

Please sign in to comment.