Skip to content

Automate browser based workflows with AI

support svg-container classes as interactable svg elements (#1042)

Shuchang Zhengae86b45ed328
diff --git a/skyvern/webeye/scraper/domUtils.js b/skyvern/webeye/scraper/domUtils.js
index a82f13a40..7e4cee10f 100644
--- a/skyvern/webeye/scraper/domUtils.js
+++ b/skyvern/webeye/scraper/domUtils.js
@@ -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