You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
safaridriver.start() maintains a static reference to a safaridriver instance, and will fail with the following message if start() is called again before stop():
Error: There is already a Safaridriver instance running on port undefined!
packages/browser/node/providers/webdriver.ts calls safaridriver.start() directly, and then immediately imports and calls webdriverio.remote(). This call also eventually calls safaridriver.start(), producing the above error.
I already have a tested fix ready to turn into a PR here: mbland@64b9bbd
Reproduction
On macOS:
git clone https://github.com/vitest-dev/vitest.git
cd vitest
git reset --hard v1.0.2
pnpm i
pnpm build
cd test/browser
npx vitest --run --browser.name=safari
You'll see the stack trace pointing to the webdriverio.remote() call leading to the second safaridriver.start() call:
Describe the bug
safaridriver.start() maintains a static reference to a safaridriver instance, and will fail with the following message if start() is called again before stop():
packages/browser/node/providers/webdriver.ts calls safaridriver.start() directly, and then immediately imports and calls webdriverio.remote(). This call also eventually calls safaridriver.start(), producing the above error.
I already have a tested fix ready to turn into a PR here: mbland@64b9bbd
Reproduction
On macOS:
You'll see the stack trace pointing to the webdriverio.remote() call leading to the second safaridriver.start() call:
System Info
Used Package Manager
pnpm
Validations
The text was updated successfully, but these errors were encountered: