browserclaw 0.9.2 → 0.9.4
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/index.cjs +7 -1
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +9 -1
- package/dist/index.d.ts +9 -1
- package/dist/index.js +7 -2
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.cjs
CHANGED
|
@@ -3468,7 +3468,12 @@ async function closePageViaPlaywright(opts) {
|
|
|
3468
3468
|
await page.close();
|
|
3469
3469
|
}
|
|
3470
3470
|
async function closePageByTargetIdViaPlaywright(opts) {
|
|
3471
|
-
|
|
3471
|
+
try {
|
|
3472
|
+
await (await resolvePageByTargetIdOrThrow(opts)).close();
|
|
3473
|
+
} catch (err) {
|
|
3474
|
+
if (err instanceof BrowserTabNotFoundError) return;
|
|
3475
|
+
throw err;
|
|
3476
|
+
}
|
|
3472
3477
|
}
|
|
3473
3478
|
async function focusPageByTargetIdViaPlaywright(opts) {
|
|
3474
3479
|
const page = await resolvePageByTargetIdOrThrow(opts);
|
|
@@ -6132,6 +6137,7 @@ exports.isChromeCdpReady = isChromeCdpReady;
|
|
|
6132
6137
|
exports.isChromeReachable = isChromeReachable;
|
|
6133
6138
|
exports.normalizeCdpHttpBaseForJsonEndpoints = normalizeCdpHttpBaseForJsonEndpoints;
|
|
6134
6139
|
exports.parseRoleRef = parseRoleRef;
|
|
6140
|
+
exports.pressAndHoldViaCdp = pressAndHoldViaCdp;
|
|
6135
6141
|
exports.requireRef = requireRef;
|
|
6136
6142
|
exports.requireRefOrSelector = requireRefOrSelector;
|
|
6137
6143
|
exports.requiresInspectableBrowserNavigationRedirects = requiresInspectableBrowserNavigationRedirects;
|