Skip to content

Commit 4e2c69f

Browse files
authored
Merge 16b6e15 into d473de8
2 parents d473de8 + 16b6e15 commit 4e2c69f

1 file changed

Lines changed: 5 additions & 2 deletions

File tree

source/NVDAObjects/UIA/__init__.py

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -863,8 +863,11 @@ def findOverlayClasses(self,clsList):
863863
if isDialog:
864864
clsList.append(Dialog)
865865
# #6241: Try detecting all possible suggestions containers and search fields scattered throughout Windows 10.
866-
if self.UIAElement.cachedAutomationID in ("SearchTextBox", "TextBox"):
867-
clsList.append(SearchField)
866+
try:
867+
if self.UIAElement.cachedAutomationID in ("SearchTextBox", "TextBox"):
868+
clsList.append(SearchField)
869+
except COMError:
870+
log.debug("Failed to locate UIA search field",exc_info=True)
868871
try:
869872
# Nested block here in order to catch value error and variable binding error when attempting to access automation ID for invalid elements.
870873
try:

0 commit comments

Comments
 (0)