Skip to content

Commit

Permalink
support svg-container classes as interactable svg elements (#1042)
Browse files Browse the repository at this point in the history
  • Loading branch information
wintonzheng authored Oct 24, 2024
1 parent 13eb85b commit ae86b45
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 @@ -448,6 +448,11 @@ function isInteractable(element) {
if (hasAngularClickBinding(element)) {
return true;
}
// https://www.oxygenxml.com/dita/1.3/specs/langRef/technicalContent/svg-container.html
// svg-container is usually used for clickable elements that wrap SVGs
if (element.className.toString().includes("svg-container")) {
return true;
}
}

// support listbox and options underneath it
Expand Down

0 comments on commit ae86b45

Please sign in to comment.