Skip to content
Permalink
Browse files

Update README.md to fix WaitForFunctionAsync usage (#1026)

(puppeteer-sharp don't accept only function body)
  • Loading branch information...
ismaeldcom authored and kblok committed Mar 20, 2019
1 parent e71b6e9 commit 8c071a04222ddd0abf90c112f1511b5623514c50
Showing with 1 addition and 1 deletion.
  1. +1 −1 README.md
@@ -120,7 +120,7 @@ using (var page = await browser.NewPageAsync())
using (var page = await browser.NewPageAsync())
{
await page.GoToAsync("http://www.spapage.com");
var watchDog = page.WaitForFunctionAsync("window.innerWidth < 100");
var watchDog = page.WaitForFunctionAsync("()=> window.innerWidth < 100");
await page.SetViewportAsync(new ViewPortOptions { Width = 50, Height = 50 });
await watchDog;
}

0 comments on commit 8c071a0

Please sign in to comment.
You can’t perform that action at this time.