Skip to content

Conversation

@psybuzz
Copy link
Contributor

@psybuzz psybuzz commented Mar 13, 2021

New Playwright users may unaware of the proper way to set the browser's
userDataDir. Currently, calling launch({args: ['--userDataDir=...']})
throws shows users an error message, leading some to try
launch({userDataDir}), which also throws and shows a different error
message, leading users to the proper invocation,
launchPersistentContext(userDataDir, ...).

This change updates the first error message's text to hopefully hint users to
the proper invocation more quickly.

New Playwright users may unaware of the proper way to set the browser's
`userDataDir`. Currently, calling `launch({args: ['--userDataDir=...']})`
throws shows users an error message, leading some to try
`launch({userDataDir})`, which also throws and shows a different error
message, leading users to the proper invocation,
`launchPersistentContext(userDataDir, ...)`.

This change updates the first error message's text to hopefully hint users to
the proper invocation more quickly.
@ghost
Copy link

ghost commented Mar 13, 2021

CLA assistant check
All CLA requirements met.

@psybuzz psybuzz closed this Mar 13, 2021
@psybuzz psybuzz reopened this Mar 13, 2021
@yury-s yury-s merged commit 095ad63 into microsoft:master Mar 15, 2021
@psybuzz
Copy link
Contributor Author

psybuzz commented Mar 19, 2021

Thanks for merging this :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants