Skip to content

Commit

Permalink
🔄 synced local 'skyvern/' with remote 'skyvern/'
Browse files Browse the repository at this point in the history
<!-- ELLIPSIS_HIDDEN -->

> [!IMPORTANT]
> Add error handling to `addIncrementalNodeToMap` in `domUtils.js` and remove metadata files from `cloud/extensions/autoplaystopper-1.9.8.1/_metadata/`.
>
>   - **Error Handling**:
>     - Add `try-catch` block in `addIncrementalNodeToMap` in `domUtils.js` to catch and log errors during incremental node building.
>   - **File Deletions**:
>     - Remove `computed_hashes.json` and `verified_contents.json` from `cloud/extensions/autoplaystopper-1.9.8.1/_metadata/`.
>
> <sup>This description was created by </sup>[<img alt="Ellipsis" src="https://img.shields.io/badge/Ellipsis-blue?color=175173">](https://www.ellipsis.dev?ref=Skyvern-AI%2Fskyvern-cloud&utm_source=github&utm_medium=referral)<sup> for cc82d178f1e80f20c1d7728632dde1958f83b997. It will automatically update as commits are pushed.</sup>

<!-- ELLIPSIS_HIDDEN -->
  • Loading branch information
wintonzheng committed Feb 4, 2025
1 parent 9b5c4f0 commit 3e4ac92
Showing 1 changed file with 8 additions and 4 deletions.
12 changes: 8 additions & 4 deletions skyvern/webeye/scraper/domUtils.js
Original file line number Diff line number Diff line change
Expand Up @@ -2085,11 +2085,15 @@ async function addIncrementalNodeToMap(parentNode, childrenNode) {
newNodesTreeList = window.globalDomDepthMap.get(depth);
}

for (const child of childrenNode) {
const [_, newNodeTree] = buildElementTree(child, "", true);
if (newNodeTree.length > 0) {
newNodesTreeList.push(...newNodeTree);
try {
for (const child of childrenNode) {
const [_, newNodeTree] = buildElementTree(child, "", true);
if (newNodeTree.length > 0) {
newNodesTreeList.push(...newNodeTree);
}
}
} catch (error) {
console.error("Error building incremental element node:", error);
}
window.globalDomDepthMap.set(depth, newNodesTreeList);
}
Expand Down

0 comments on commit 3e4ac92

Please sign in to comment.