Can I use regular expressions with UI Automation objects?
Category:
Question ID: 109735
0
0

Can regular expressions be used in UFT UI Automation objects?

Marked as spam
Posted by (Questions: 227, Answers: 22)
Asked on July 31, 2020 10:59 am
38 views
Answers (1)
0
Private answer

The controltype cannot have a value that is a regular expression.

UIA container objects with large numbers of elements

When spying on UIA container objects, such as lists, trees, and tables with large numbers of elements in the object, UFT may experience slow performance and unexpected behavior.

Workaround: Do one or more of the following:

  • In your application, implement the ItemContainer pattern with the FindItemByProperty() method.
  • Manually add additional description properties for the items in the object, such as index. These properties are not added by default.
  • Use .Object methods to access items within the control.
Marked as spam
Posted by (Questions: 2, Answers: 477)
Answered on July 31, 2020 11:00 am
EyeOnTesting

Welcome back to "EyeOnTesting" brought to you by Orasi Software, Inc.

X
Scroll to Top