diff --git a/daemon/daemon.go b/daemon/daemon.go index 6a669e7..317fef3 100644 --- a/daemon/daemon.go +++ b/daemon/daemon.go @@ -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 {