Automate browser based workflows with AI
Python aiapiautomationbrowserbrowser-automationcomputergptllmplaywrightpowerautomatepuppeteerpythonrpaseleniumvisionworkflow
add disabled attr to element (#860)
Shuchang Zheng9a386c07b527
diff --git a/skyvern/webeye/scraper/domUtils.js b/skyvern/webeye/scraper/domUtils.jsindex bc60f77c0..5ba5bc4cc 100644--- a/skyvern/webeye/scraper/domUtils.js+++ b/skyvern/webeye/scraper/domUtils.js@@ -938,7 +938,8 @@ function buildElementObject(frame, element, interactable, purgeable = false) {attr.name === "selected" ||attr.name === "aria-selected" ||attr.name === "readonly" ||- attr.name === "aria-readonly"+ attr.name === "aria-readonly" ||+ attr.name === "disabled") {if (attrValue && attrValue.toLowerCase() === "false") {attrValue = false;diff --git a/skyvern/webeye/scraper/scraper.py b/skyvern/webeye/scraper/scraper.pyindex c142da1ff..85fa31f23 100644--- a/skyvern/webeye/scraper/scraper.py+++ b/skyvern/webeye/scraper/scraper.py@@ -30,6 +30,7 @@ RESERVED_ATTRIBUTES = {"checked","data-original-title", # for bootstrap tooltip"data-ui",+ "disabled", # for button"for","href", # For a tags"maxlength",