diff --git a/README.md b/README.md index e65382738..14873ac91 100644 --- a/README.md +++ b/README.md @@ -97,7 +97,7 @@ using(var page = await browser.NewPageAsync()) ```cs using (var page = await browser.NewPageAsync()) { - var seven = await page.EvaluateFunctionAsync("4 + 3"); + var seven = await page.EvaluateExpressionAsync("4 + 3"); var someObject = await page.EvaluateFunctionAsync("(value) => ({a: value})", 5); Console.WriteLine(someObject.a); } diff --git a/docfx_project/api/index.md b/docfx_project/api/index.md index 85f3ce432..8e72f64b8 100644 --- a/docfx_project/api/index.md +++ b/docfx_project/api/index.md @@ -59,7 +59,7 @@ using(var page = await Browser.NewPageAsync()) ```cs using (var page = await Browser.NewPageAsync()) { - var seven = await page.EvaluateFunctionAsync("4 + 3"); + var seven = await page.EvaluateExpressionAsync("4 + 3"); var someObject = await page.EvaluateFunctionAsync("(value) => ({a: value})", 5); Console.WriteLine(someObject.a); } diff --git a/docfx_project/examples/index.md b/docfx_project/examples/index.md index 25a45d85f..9386ca455 100644 --- a/docfx_project/examples/index.md +++ b/docfx_project/examples/index.md @@ -57,7 +57,7 @@ using(var page = await browser.NewPageAsync()) ```cs using (var page = await browser.NewPageAsync()) { - var seven = await page.EvaluateFunctionAsync("()=> 4 + 3"); + var seven = await page.EvaluateExpressionAsync("()=> 4 + 3"); var someObject = await page.EvaluateFunctionAsync("(value) => ({a: value})", 5); Console.WriteLine(someObject.a); }