PerformXPathQuery

Returns an array of results that matches an XPath query. You can use this statement to determine how many descendants a control has.

Note: Only use this advanced statement if you are familiar with XPath and understand how changing QA Wizard Pro search options can impact scripts. See About XPath queries.

Syntax

PerformXPathQuery("XPathQuery")

Arguments

Argument Description
XPathQuery XPath query to perform.

Supported objects

Browser, Window

Return value

Value Description
Value Array of results that match the XPath query.

Example

Window("Report a Bug").PerformXPathQuery("html[1]/body[1]/table[2]/tbody[1]/tr[2]/td[7]/table[1]/tbody[1]/tr[1]/td[1]/table[1]/tbody[1]/tr[1]/td[1]/table[1]/descendant::table")