Skip to content

Commit 737b4b2

Browse files
rm isTopElement check from isTextVisible (#413)
* rm isTopElement check from isTextVisible * changeset
1 parent 705d8d6 commit 737b4b2

File tree

2 files changed

+5
-3
lines changed

2 files changed

+5
-3
lines changed

Diff for: .changeset/rotten-pumpkins-share.md

+5
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
"@browserbasehq/stagehand": patch
3+
---
4+
5+
remove topMostElement check when verifying visibility of text nodes

Diff for: lib/dom/process.ts

-3
Original file line numberDiff line numberDiff line change
@@ -532,9 +532,6 @@ const isTextVisible = (element: ChildNode) => {
532532
if (!parent) {
533533
return false;
534534
}
535-
if (!isTopElement(parent, rect)) {
536-
return false;
537-
}
538535

539536
const visible = parent.checkVisibility({
540537
checkOpacity: true,

0 commit comments

Comments
 (0)