@@ -204,6 +204,7 @@ function buildLocalCapabilities(browserName: string) {
204204function buildBrowserStackCapabilities ( config : typeof browserConfig ) {
205205 return {
206206 browserName : config . browserName ,
207+ webSocketUrl : false , // Disable WebDriver Bidi for BrowserStack
207208 // 'goog:chromeOptions': {
208209 // args: [
209210 // '--disable-blink-features=AutomationControlled',
@@ -224,7 +225,6 @@ function buildBrowserStackCapabilities(config: typeof browserConfig) {
224225 consoleLogs : 'verbose' as const ,
225226 idleTimeout : 600 , // 10 minutes idle timeout,
226227 } ,
227- webSocketUrl : true ,
228228 } ;
229229}
230230
@@ -238,7 +238,7 @@ function buildBrowserInstances() {
238238 logLevel : 'error' as const ,
239239 connectionRetryTimeout : 180000 , // 3 minutes
240240 connectionRetryCount : 3 ,
241- webSocketUrl : true , // Enable WebDriver Bidi
241+ webSocketUrl : false , // Enable WebDriver Bidi
242242 } ) ) ;
243243 } else {
244244 // BrowserStack remote configurations - all browsers
@@ -253,7 +253,7 @@ function buildBrowserInstances() {
253253 logLevel : 'error' as const ,
254254 connectionRetryTimeout : 180000 , // 3 minutes
255255 connectionRetryCount : 3 ,
256- webSocketUrl : true , // Enable WebDriver Bidi
256+ webSocketUrl : false , // Enable WebDriver Bidi
257257 } ) ) ;
258258 }
259259}
0 commit comments