This commit is contained in:
Josh at WLTechBlog
2025-11-20 16:11:00 -07:00
parent f8fbfddc7f
commit 4c5b4b4b6b

View File

@@ -10928,6 +10928,12 @@ func (d *Daemon) testKeyboardNavigationWithRealKeys(tabID string, timeout int) (
const text = element.textContent.trim().substring(0, 50);
const tabIndex = element.tabIndex;
// Skip elements that are not in the natural tab order
// Elements with tabIndex < 0 are programmatically focusable but not reachable via Tab key
if (tabIndex < 0) {
return;
}
// Check if element is focusable using programmatic focus
let isFocusable = false;
try {