BrowserSteps - Element finder filter (offpage) should also calculate top scroll offset

This commit is contained in:
dgtlmoon
2022-11-28 18:04:02 +01:00
parent 991841f1f9
commit 4624974b91

View File

@@ -87,7 +87,7 @@ for (var i = 0; i < elements.length; i++) {
}
// Don't include elements that are offset from canvas
if (bbox['top'] < 0 || bbox['left'] < 0) {
if (bbox['top']+scroll_y < 0 || bbox['left'] < 0) {
continue;
}