Skip to content

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

docs: small tweaks (#6681)

Dmitry Gozman8490eb3c896f
diff --git a/docs/src/cli.md b/docs/src/cli.md
index dd8b610ff5..8953d33f8a 100644
--- a/docs/src/cli.md
+++ b/docs/src/cli.md
@@ -178,7 +178,7 @@ class Example
{
using var playwright = await Playwright.CreateAsync();
var chromium = playwright.Chromium;
- // Can be "msedge", "chrome-beta", "msedge-beta", "msedge-dev", etc.
+ // Make sure to run headed.
var browser = await chromium.LaunchAsync(new BrowserTypeLaunchOptions { Headless = false });
// Setup context however you like.
diff --git a/docs/src/debug.md b/docs/src/debug.md
index 69e725f06a..e9253b6449 100644
--- a/docs/src/debug.md
+++ b/docs/src/debug.md
@@ -65,31 +65,33 @@ a Playwright script in headed mode. Developer tools help to:
Using a [`method: Page.pause`] method is an easy way to pause the Playwright script execution
and inspect the page in Developer tools. It will also open [Playwright Inspector](./inspector.md) to help with debugging.
-:::note
-**For WebKit**: launching WebKit Inspector during the execution will
- prevent the Playwright script from executing any further.
-:::
-
-:::note
**For Chromium**: you can also open developer tools through a launch option.
```js
await chromium.launch({ devtools: true });
```
+
```java
chromium.launch(new BrowserType.LaunchOptions().setDevtools(true));
```
+
```python async
await chromium.launch(devtools=True)
```
+
```python sync
chromium.launch(devtools=True)
```
+
```csharp
await using var browser = await playwright.Chromium.LaunchAsync(new BrowserTypeLaunchOptions
{
Devtools: true
});
```
+
+:::note
+**For WebKit**: launching WebKit Inspector during the execution will
+ prevent the Playwright script from executing any further.
:::
## Run in Debug Mode