/*
 * A scripted action has access to the VU state and the browser.
 * The script should return null if successful. A non-null return value
 * will be interpted as a string and used as the error message.
 * 
 * To get and set user-state variables:
 *   var us = context.getUserState().getVariable('variable_name');
 *   context.getUserState(.setVariable('name', 'value');
 * To get a value from a dataset:
 *   var ds = context.getUserState().getDatasetParameter('dataset_name', 'field_name');
 * To access the browsers's driver (WebDriver) instance:
 *   var driver = context.getDriver();
 */
function execute(context)
	{
	// This example script returns an error condition (the page title).
	// Successfull scriptexecution should return null.
    return context.getDriver().getTitle();
	}
	
/*
 * If a dataset is used, it must be declared here, so that Load Tester can ensure 
 * the dataset sent to the load engine and is available to the virtual user.
 */
function getDatasetsRequired()
	{
	// example: 
	// return new Array("dataset1","dateset2","dataset3");

	return null;
	}
