Search:     Advanced search

QA Wizard Pro Cannot Locate a Repository Item

Article ID: 827  |  Last updated: 05 May, 2017


A script fails during playback and an error similar to the following is returned:

'Cannot locate the local:WysiCorp Login/1.0/Wysicorp - Feedback Acknowledgement/editbox8 repository item in the running application. Searched for 30 seconds.'


QA Wizard Pro performs dynamic searches to locate controls in the tested application. During recording, QA Wizard Pro records several properties of each control and creates an entry for each control in the application repository. Each control in the repository has a default set of search criteria, which varies based on the control type. The default search criteria can be used during playback to successfully locate controls most of the time. However, there are instances when the default search criteria is not the best way to locate a control.

For example, the default search criteria for text input boxes in HTML includes the following: Tag ID (corresponds to the HTML ID value), Name, and Vertical Repeat Index (only if there is more than one text input box on the page). In web applications with dynamically-generated content, sometimes one or more of these default criteria change every time the page loads. For example, the Name or Tag ID might be dynamically generated, or a portion of it may be dynamic such as 'ItemQuant_12345', where 12345 is a dynamic number.


Evaluate the window/control properties and select different search criteria.

  1. Select the control in the QA Wizard Pro application repository. 
  2. Right-click the control and select Properties. The window/control Properties dialog box opens. Notice the check boxes on the left side of the dialog box. If the check box for a property is selected, the property is used as search criteria. To successfully locate the control, the control must match all of the selected properties.
  3. Determine if QA Wizard Pro can locate the control using a different set of criteria. If so, clear or select the properties to use as search criteria.
  4. Optionally change the Action, which controls how QA Wizard Pro searches for the expected value.
  • Equals searches for exact matches to the expected value.
  • Starts With searches for values that begin with the expected value.
  • Ends With searches for values that end with the expected value.
  • Contains searches for values that include the expected value.
  • Matches Regex matches a regular expression. If a property value is dynamic, you can use regular expressions to search for a pattern match. For example, in the itemQuant_12345 example, you can use itemQuant_[0-9]+ as the expected value to search for the numeric part of the value.
Article ID: 827  |   Last updated: 05 May, 2017
playback cannot locate repository item

Prev   Next
Escaping Slashes in List View, Menu, and Tree Control Item Text     Qt Combo Box or List Box Items Not Added to Scripts