We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents d473de8 + 16b6e15 commit 4e2c69fCopy full SHA for 4e2c69f
1 file changed
source/NVDAObjects/UIA/__init__.py
@@ -863,8 +863,11 @@ def findOverlayClasses(self,clsList):
863
if isDialog:
864
clsList.append(Dialog)
865
# #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)
+ try:
+ 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)
871
try:
872
# Nested block here in order to catch value error and variable binding error when attempting to access automation ID for invalid elements.
873
0 commit comments