@midscene/cli 1.9.7 → 1.9.8-beta-20260618091332.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/es/framework/index.mjs +7 -3
- package/dist/es/framework/index.mjs.map +1 -1
- package/dist/es/index.mjs +2 -4
- package/dist/es/index.mjs.map +1 -1
- package/dist/lib/framework/index.js +6 -2
- package/dist/lib/framework/index.js.map +1 -1
- package/dist/lib/index.js +2 -4
- package/dist/lib/index.js.map +1 -1
- package/package.json +8 -8
|
@@ -3437,7 +3437,8 @@ defineYamlBatchTest(test, testOptions);
|
|
|
3437
3437
|
if (webTarget.cdpEndpoint) {
|
|
3438
3438
|
const cdpBrowser = options?.browser ?? await external_puppeteer_default().connect({
|
|
3439
3439
|
browserWSEndpoint: webTarget.cdpEndpoint,
|
|
3440
|
-
defaultViewport: null
|
|
3440
|
+
defaultViewport: null,
|
|
3441
|
+
downloadBehavior: (0, puppeteer_agent_launcher_namespaceObject.buildDownloadBehavior)(webTarget.downloadPath)
|
|
3441
3442
|
});
|
|
3442
3443
|
if (webTarget.chromeArgs) console.warn('chromeArgs are not supported in CDP mode (browser is already running). They will be ignored.');
|
|
3443
3444
|
const { agent, freeFn: newFreeFn } = await (0, puppeteer_agent_launcher_namespaceObject.puppeteerAgentForTarget)(webTarget, {
|
|
@@ -3475,6 +3476,7 @@ defineYamlBatchTest(test, testOptions);
|
|
|
3475
3476
|
'waitForNetworkIdle',
|
|
3476
3477
|
'cookie',
|
|
3477
3478
|
'extraHTTPHeaders',
|
|
3479
|
+
'downloadPath',
|
|
3478
3480
|
'chromeArgs'
|
|
3479
3481
|
];
|
|
3480
3482
|
const ignoredKeys = bridgeUnsupportedKeys.filter((key)=>null != webTarget[key]);
|
|
@@ -3840,7 +3842,8 @@ defineYamlBatchTest(test, testOptions);
|
|
|
3840
3842
|
const globalWebConfig = this.config.globalConfig?.web;
|
|
3841
3843
|
if (globalWebConfig?.cdpEndpoint) browser = await external_puppeteer_default().connect({
|
|
3842
3844
|
browserWSEndpoint: globalWebConfig.cdpEndpoint,
|
|
3843
|
-
defaultViewport: null
|
|
3845
|
+
defaultViewport: null,
|
|
3846
|
+
downloadBehavior: (0, puppeteer_agent_launcher_namespaceObject.buildDownloadBehavior)(globalWebConfig.downloadPath)
|
|
3844
3847
|
});
|
|
3845
3848
|
else {
|
|
3846
3849
|
const width = globalWebConfig?.viewportWidth ?? puppeteer_agent_launcher_namespaceObject.defaultViewportWidth;
|
|
@@ -3859,6 +3862,7 @@ defineYamlBatchTest(test, testOptions);
|
|
|
3859
3862
|
width,
|
|
3860
3863
|
height
|
|
3861
3864
|
},
|
|
3865
|
+
downloadBehavior: (0, puppeteer_agent_launcher_namespaceObject.buildDownloadBehavior)(globalWebConfig?.downloadPath),
|
|
3862
3866
|
args,
|
|
3863
3867
|
acceptInsecureCerts: globalWebConfig?.acceptInsecureCerts
|
|
3864
3868
|
});
|