Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
  • Loading branch information
Liviu Rau committed Jan 28, 2025
1 parent fc3167a commit 3b31ef6
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 6 deletions.
3 changes: 2 additions & 1 deletion src/bidiServer/BrowserInstance.ts
Original file line number Diff line number Diff line change
Expand Up @@ -98,6 +98,7 @@ export class BrowserInstance {
executablePath,
args: chromeArguments,
env: process.env,
pipe: true,
};

debugInternal(`Launching browser`, {
Expand All @@ -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(
Expand Down
10 changes: 5 additions & 5 deletions tests/webExtension/test_web_extension.py
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down

0 comments on commit 3b31ef6

Please sign in to comment.