miyakogi / pyppeteer

Headless chrome/chromium automation library (unofficial port of puppeteer)
Other
3.57k stars 371 forks source link

AttributeError: 'coroutine' object has no attribute 'goto' #268

Open asos-gianlucacolucci opened 5 years ago

asos-gianlucacolucci commented 5 years ago

Running this code:

` browser = await launch() context = await browser.createIncognitoBrowserContext()

page = browser.newPage()

await page.goto('https://www.test.com') await page.screenshot({'path': 'debug.png'}) `

and getting this:


AttributeError Traceback (most recent call last) cell_name in async-def-wrapper()

AttributeError: 'coroutine' object has no attribute 'goto'


Any hint? Thanks.