About search methods

During playback, QA Wizard Pro searches for windows and controls using the Standard, XPath, or Function method, which is selected in the window/control Properties dialog box.

Standard

When new windows and controls in Windows and Java applications are added to the application repository, the Standard search method is selected in the control properties by default. This search method locates windows and controls using application properties and expected values. A control is located when its actual property values match the selected search criteria in the repository.

If a control set to use the Standard search method is not located during playback, you can modify the properties to select different search criteria. See Changing standard search criteria. If QA Wizard Pro still cannot locate the control or selects the wrong control after modifying the criteria, you can modify the control to use the XPath or Function search method instead.

XPath

When new HTML controls in web applications are added to the application repository, the XPath search method is selected in the control properties by default. This search method locates HTML controls using an XPath query. All HTML controls in the repository have an XPath, which is a unique path to a control based on its position in the hierarchy of the HTML document. QA Wizard Pro can search for controls using the XPath in the repository or you can enter a different XPath. See About XPath queries.

Note: Some HTML controls added to the repository in QA Wizard Pro 2016.2.0 or earlier may use the Standard search method. If these controls are not located when running web scripts, modify the control properties to use the XPath search method to improve playback accuracy. See Using the XPath search method.

Function

The Function search method can be used to create a custom algorithm to locate controls, such as a search algorithm that includes and/or conditions. Because this function is executed both during recording and playback, you must use the GetRunTimeValue function to retrieve control properties. See Using the Function search method.

Note: Only use the Function search method if you are familiar with creating functions and understand how changing search options can impact scripts. Scripts will not work if you use this search method incorrectly.