From 36eed69fe28e9556395f209a92b66bebe699a28b Mon Sep 17 00:00:00 2001 From: Christopher Dunderdale <47271795+thatstatsguy@users.noreply.github.com> Date: Sun, 4 Feb 2024 11:31:28 +0200 Subject: [PATCH] docs(emulation): fix incorrect code snippet for using JavaScriptEnabled (#29333) --- docs/src/emulation.md | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/docs/src/emulation.md b/docs/src/emulation.md index a29e6cef7d..ad709cc308 100644 --- a/docs/src/emulation.md +++ b/docs/src/emulation.md @@ -781,16 +781,16 @@ BrowserContext context = browser.newContext(new Browser.NewContextOptions() ```python async context = await browser.new_context( - javaScript_enabled=False + java_script_enabled=False ) ``` ```python sync context = browser.new_context( - javaScript_enabled=False + java_script_enabled=False ) ``` ```csharp -var context = await browser.NewContextAsync(new() { JavaScriptEnabled = true }); +var context = await browser.NewContextAsync(new() { JavaScriptEnabled = false }); ```