mirror of
https://github.com/microsoft/playwright.git
synced 2025-06-26 21:40:17 +00:00
docs: fix some 1.8 docs nits (#5078)
This commit is contained in:
parent
af6e3a8ea1
commit
45c33ae02f
@ -4,7 +4,7 @@ title: "Core concepts"
|
|||||||
---
|
---
|
||||||
|
|
||||||
Playwright provides a set of APIs to automate Chromium, Firefox and WebKit
|
Playwright provides a set of APIs to automate Chromium, Firefox and WebKit
|
||||||
browsers. By using the Playwright API, you can write JavaScript code to create
|
browsers. By using the Playwright API, you can write scripts to create
|
||||||
new browser pages, navigate to URLs and then interact with elements on a page.
|
new browser pages, navigate to URLs and then interact with elements on a page.
|
||||||
|
|
||||||
Along with a test runner Playwright can be used to automate user interactions to
|
Along with a test runner Playwright can be used to automate user interactions to
|
||||||
|
|||||||
@ -12,7 +12,7 @@ for browser automation.
|
|||||||
## Run in headful mode
|
## Run in headful mode
|
||||||
|
|
||||||
Playwright runs browsers in headless mode by default. To change this behavior,
|
Playwright runs browsers in headless mode by default. To change this behavior,
|
||||||
use `headless: false` as a launch option. You can also use the `slowMo` option
|
use `headless: false` as a launch option. You can also use the [`option: slowMo`] option
|
||||||
to slow down execution and follow along while debugging.
|
to slow down execution and follow along while debugging.
|
||||||
|
|
||||||
```js
|
```js
|
||||||
|
|||||||
@ -63,7 +63,7 @@ with sync_playwright() as p:
|
|||||||
browser.close()
|
browser.close()
|
||||||
```
|
```
|
||||||
|
|
||||||
By default, Playwright runs the browsers in headless mode. To see the browser UI, pass the `headless=False` flag while launching the browser. You can also use `slowMo` to slow down execution. Learn more in the debugging tools [section](./debug.md).
|
By default, Playwright runs the browsers in headless mode. To see the browser UI, pass the `headless=False` flag while launching the browser. You can also use [`option: slowMo`] to slow down execution. Learn more in the debugging tools [section](./debug.md).
|
||||||
|
|
||||||
```py
|
```py
|
||||||
firefox.launch(headless=False, slowMo=50)
|
firefox.launch(headless=False, slowMo=50)
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user