Skip to content

Commit 78282b5

Browse files
authored
README: add note about persistent contexts and PLAYWRIGHT_LAUNCH_OPTIONS
1 parent 6d01af2 commit 78282b5

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

README.md

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -128,7 +128,8 @@ Type `dict`, default `{}`
128128

129129
A dictionary with options to be passed as keyword arguments when launching the
130130
Browser. See the docs for
131-
[`BrowserType.launch`](https://playwright.dev/python/docs/api/class-browsertype#browser-type-launch).
131+
[`BrowserType.launch`](https://playwright.dev/python/docs/api/class-browsertype#browser-type-launch)
132+
for a list of supported keyword arguments.
132133

133134
```python
134135
PLAYWRIGHT_LAUNCH_OPTIONS = {
@@ -535,6 +536,11 @@ context can also be customized on startup via the `PLAYWRIGHT_CONTEXTS` setting.
535536
Pass a value for the `user_data_dir` keyword argument to launch a context as
536537
persistent. See also [`BrowserType.launch_persistent_context`](https://playwright.dev/python/docs/api/class-browsertype#browser-type-launch-persistent-context).
537538

539+
Note that persistent contexts are launched independently from the main browser
540+
instance, hence keyword arguments passed in the
541+
[`PLAYWRIGHT_LAUNCH_OPTIONS`](#playwright_launch_options)
542+
setting do not apply.
543+
538544
### Creating a context during a crawl
539545

540546
If the context specified in the `playwright_context` meta key does not exist, it will be created.

0 commit comments

Comments
 (0)