Skip to content
This repository was archived by the owner on Sep 11, 2025. It is now read-only.

Commit 362bede

Browse files
authored
Support chrome devtool connection
Select connect function based on endpointURL being set
1 parent 9803fd5 commit 362bede

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/PlaywrightEnvironment.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,7 @@ const getBrowserPerProcess = async (
6868
}
6969

7070
const options = getBrowserOptions(browserType, connectOptions)
71-
return playwrightInstance.connect(options)
71+
return options?.endpointURL ? playwrightInstance.connectOverCDP(options) : playwrightInstance.connect(options);
7272
}
7373

7474
const getDeviceConfig = (

0 commit comments

Comments
 (0)