Skip to content

Commit

Permalink
Merge pull request #250 from Anthony-YY/support_download_inspect
Browse files Browse the repository at this point in the history
support chrome download activity access under headless mode (enable f…
  • Loading branch information
ArtMathArt authored Sep 30, 2024
2 parents 656d7e5 + 25021a0 commit 47e2276
Showing 1 changed file with 2 additions and 8 deletions.
10 changes: 2 additions & 8 deletions packages/plugin-selenium-driver/src/plugin/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -187,14 +187,8 @@ export class SeleniumPlugin implements IBrowserProxyPlugin {
}

const googleChromeOptions = mergedConfig.capabilities?.['goog:chromeOptions'];
if (
googleChromeOptions &&
(
googleChromeOptions.args?.includes('--headless') ||
googleChromeOptions.args?.includes('headless')
)
) {
const extensions = mergedConfig.capabilities?.['goog:chromeOptions'].extensions;
if (googleChromeOptions?.args?.includes('--headless=new')) {
const extensions = googleChromeOptions.extensions;
const dowldMonitorCrx = getCrxBase64();
if (extensions) {
extensions.push(dowldMonitorCrx);
Expand Down

0 comments on commit 47e2276

Please sign in to comment.