Adds a query parameter to the given location url.

Syntax

Smartsite SXML CopyCode image Copy Code
locator url.addparameter(locator location, string name, string value)
locator url.addparameter(locator location, string name, string value, integer position)

Parameters

Name Data Type Description
location Locator The location url.
name String The name of the query parameter.
value String The value of the query parameter.
position Integer The position (1-based) of the parameter if the URL supports URL parameter syntax.

Return Value

Data Type Description
Locator The modified location.

Expand image Example

SXML