Skip to main content

How to Data-Drive Xpaths

In some scenarios, thean accessor’s XPath used by an accessor may need tomust be generated dynamically generated based onfrom test data. TestScenario DesignerEditor supports data-driven XPathsXPath expressions by usingallowing variables within the XPath expression.

The following example shows how to use a variable as part of an XPath:

byXPath("//*[@id='" + $Test + "']")

InThe this example, $Test variable is replaced with the corresponding test-data value provided bywhen the teststep data,executes.

allowing
the

Last sameupdated: accessorOctober to15, interact2026

with

If differentyou elementshave duringany testfeedback execution.on this topic, please contact us at documentation@appvance.ai.