Skip to content

Playwright is a framework for Web Testing and Automation. It allows testing Chromium, Firefox and WebKit with a single API.

docs(emulation): fix incorrect code snippet for using JavaScriptEnabled (#29333)

Christopher Dunderdale36eed69fe28e
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 });
```