miyakogi / pyppeteer

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

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

Open asos-gianlucacolucci opened 4 years ago

asos-gianlucacolucci commented 4 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.