Open kenz-lu opened 1 year ago
Launch persistent context in Playwright using a temporary directory by passing an empty string to userDataDir. (Playwright documentation: https://playwright.dev/docs/api/class-browsertype#browser-type-launch-persistent-context-option-user-data-dir)
userDataDir
Playwright browser does not launch using persistent context
Playwright: { chromium: { userDataDir: '', }, }
I believe this is the cause? https://github.com/codeceptjs/CodeceptJS/blob/c79a0c6b85ceceddeff8417c696511f016ef4555/lib/helper/Playwright.js#L729-L733
Sounds like if (typeof this.userDataDir !== 'undefined') should solve the issue?
if (typeof this.userDataDir !== 'undefined')
This issue is stale because it has been open for 90 days with no activity.
What are you trying to achieve?
Launch persistent context in Playwright using a temporary directory by passing an empty string to
userDataDir
. (Playwright documentation: https://playwright.dev/docs/api/class-browsertype#browser-type-launch-persistent-context-option-user-data-dir)What do you get instead?
Playwright browser does not launch using persistent context
Details