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

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
Answers (1)
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

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

Scroll to Top