Method Datatable.Value
Retrieves value from the Datatable
Usage
Function DataTable.Value(
String Name
)
Parameters
Name
Type: String
The name of the parameter (column name)
Returns
Value from Datatable for the current Iteration
Example
For example, lets update script to run same script for different browsers.
We will rename Datatable column "A" to "Browser" and add three cells in a column: chrome, firefox, opera.
Now update Application.Launch method calling
VBScript
site_url = "demo.zaptest.com"
Application("Demo").Launch Datatable.Value("Browser"), site_url
'now on each iteration ZAPTEST will get browser name from Datatable to launch it
JavaScript
var siteUrl = "demo.zaptest.com";
Application("Demo").Launch(Datatable.Value("Browser"), siteUrl);
// now on each iteration ZAPTEST will get browser name from Datatable to launch it

ZAP Utility

Zap.Common...Box
Datatable.Value("A")

Comment
Use Datatable.Value in parameter box of Exist method

Step

Exist
Datatable.Value("A")
true
Comment
Show message box with datatable parameter value