Skip to content

Commit

Permalink
fix shadow host parsing issue (#1253)
Browse files Browse the repository at this point in the history
  • Loading branch information
LawyZheng authored Nov 25, 2024
1 parent 96d2856 commit 303153b
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions skyvern/webeye/scraper/domUtils.js
Original file line number Diff line number Diff line change
Expand Up @@ -1234,6 +1234,11 @@ function buildElementTree(starter = document.body, frame, full_tree = false) {
const childElement = children[i];
processElement(childElement, shadowHostElement.id);
}
const selfChildren = getChildElements(element);
for (let i = 0; i < selfChildren.length; i++) {
const childElement = selfChildren[i];
processElement(childElement, shadowHostElement.id);
}
} else {
// For a non-interactable element, if it has direct text, we also tagged
// it with unique_id, but with interatable=false in the element.
Expand Down

0 comments on commit 303153b

Please sign in to comment.