diff --git a/src/bidiServer/BrowserInstance.ts b/src/bidiServer/BrowserInstance.ts index bb8ef0bf2..4324c554a 100644 --- a/src/bidiServer/BrowserInstance.ts +++ b/src/bidiServer/BrowserInstance.ts @@ -98,6 +98,7 @@ export class BrowserInstance { executablePath, args: chromeArguments, env: process.env, + pipe: true, }; debugInternal(`Launching browser`, { @@ -108,7 +109,7 @@ export class BrowserInstance { const browserProcess = launch(launchArguments); let cdpConnection; - if('--remote-debugging-pipe' in chromeArguments) { + if(chromeArguments.includes('--remote-debugging-pipe')) { cdpConnection = await this.#establishPipeConnection(browserProcess); } else { const cdpEndpoint = await browserProcess.waitForLineOutput( diff --git a/tests/webExtension/test_web_extension.py b/tests/webExtension/test_web_extension.py index 801a1e7d7..7d15483ca 100644 --- a/tests/webExtension/test_web_extension.py +++ b/tests/webExtension/test_web_extension.py @@ -38,11 +38,11 @@ async def test_method_not_available(websocket): @pytest.mark.asyncio @pytest.mark.parametrize('capabilities', [{ - 'goog:chromeOptions': { - 'args': ['--enable-unsafe-extension-debugging', '--remote-debugging-pipe'] - }, -}], - indirect=True) + 'goog:chromeOptions': { + 'args': ['--enable-unsafe-extension-debugging', '--remote-debugging-pipe'] + }, + }], + indirect=True) async def test_invalid_path(websocket): with pytest.raises( Exception,