mirror of
https://github.com/microsoft/playwright.git
synced 2024-10-27 13:50:25 +03:00
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
|
||||
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 });
|
||||
```
|
||||
|
Loading…
Reference in New Issue
Block a user