Skip to content

Conversation

@JoelEinbinder
Copy link
Contributor

The new behavior of page.evaluate to convert to JSON makes it difficult to use if you don't care about the return value of your function. Consider

await page.evaluate(() => window.open('about:blank'));
await page.evaluate(() => $('body').hide());

I don't want to be paranoid about whether or not my evaluations unintentionally return circular json.

@aslushnikov
Copy link
Contributor

Let's update documentation

@JoelEinbinder JoelEinbinder merged commit a7672ac into puppeteer:master Oct 9, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants