Skip to content

Commit ed19989

Browse files
committed
wdio classic
1 parent f717d8c commit ed19989

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

vitest.browser.config.mts

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -204,7 +204,8 @@ function buildLocalCapabilities(browserName: string) {
204204
function buildBrowserStackCapabilities(config: typeof browserConfig) {
205205
return {
206206
browserName: config.browserName,
207-
webSocketUrl: true, // Disable WebDriver Bidi for BrowserStack
207+
// webSocketUrl: true, // Disable WebDriver Bidi for BrowserStack
208+
'wdio:enforceWebDriverClassic': true,
208209
'goog:chromeOptions': {
209210
args: [
210211
'--disable-blink-features=AutomationControlled',
@@ -238,7 +239,7 @@ function buildBrowserInstances() {
238239
logLevel: 'error' as const,
239240
connectionRetryTimeout: 180000, // 3 minutes
240241
connectionRetryCount: 3,
241-
webSocketUrl: false, // Enable WebDriver Bidi
242+
// webSocketUrl: false, // Enable WebDriver Bidi
242243
}));
243244
} else {
244245
// BrowserStack remote configurations - all browsers
@@ -253,7 +254,7 @@ function buildBrowserInstances() {
253254
logLevel: 'error' as const,
254255
connectionRetryTimeout: 180000, // 3 minutes
255256
connectionRetryCount: 3,
256-
webSocketUrl: false, // Enable WebDriver Bidi
257+
// webSocketUrl: false, // Enable WebDriver Bidi
257258
}));
258259
}
259260
}

0 commit comments

Comments
 (0)