Skip to content

Automate browser based workflows with AI

bugfix (#2237)

Shuchang Zhengd798b00409a5
diff --git a/skyvern/webeye/scraper/domUtils.js b/skyvern/webeye/scraper/domUtils.js
index ab6e950da..1a2d41790 100644
--- a/skyvern/webeye/scraper/domUtils.js
+++ b/skyvern/webeye/scraper/domUtils.js
@@ -2322,10 +2322,7 @@ if (window.globalObserverForDOMIncrement === undefined) {
case "style": {
// TODO: need to confirm that elemnent is hidden previously
if (tagName === "body") continue;
- if (
- (getElementComputedStyle(node)?.display !== "none") !==
- "none"
- ) {
+ if (getElementComputedStyle(node)?.display !== "none") {
window.globalOneTimeIncrementElements.push({
targetNode: node,
newNodes: [node],
@@ -2351,10 +2348,7 @@ if (window.globalObserverForDOMIncrement === undefined) {
)
)
continue;
- if (
- (getElementComputedStyle(node)?.display !== "none") !==
- "none"
- ) {
+ if (getElementComputedStyle(node)?.display !== "none") {
window.globalOneTimeIncrementElements.push({
targetNode: node,
newNodes: [node],