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

This commit is contained in:
Christopher Dunderdale 2024-02-04 11:31:28 +02:00 committed by GitHub
parent 79e379fc11
commit 36eed69fe2
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

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