docs(emulation): fix incorrect code snippet for using JavaScriptEnabled (#29333)
This commit is contained in:
parent
79e379fc11
commit
36eed69fe2
|
|
@ -781,16 +781,16 @@ BrowserContext context = browser.newContext(new Browser.NewContextOptions()
|
||||||
|
|
||||||
```python async
|
```python async
|
||||||
context = await browser.new_context(
|
context = await browser.new_context(
|
||||||
javaScript_enabled=False
|
java_script_enabled=False
|
||||||
)
|
)
|
||||||
```
|
```
|
||||||
|
|
||||||
```python sync
|
```python sync
|
||||||
context = browser.new_context(
|
context = browser.new_context(
|
||||||
javaScript_enabled=False
|
java_script_enabled=False
|
||||||
)
|
)
|
||||||
```
|
```
|
||||||
|
|
||||||
```csharp
|
```csharp
|
||||||
var context = await browser.NewContextAsync(new() { JavaScriptEnabled = true });
|
var context = await browser.NewContextAsync(new() { JavaScriptEnabled = false });
|
||||||
```
|
```
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue