Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore: update error message when using userDataDir arg #5814

Merged
merged 1 commit into from
Mar 15, 2021

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