Sets the value of a query parameter.
Syntax
Smartsite SXML | Copy Code |
---|---|
locator url.setparameter(locator location, string name, string value) locator url.setparameter(locator location, string name, string value, integer position) |
Parameters
Name | Data Type | Description |
---|---|---|
location | Locator | The location. |
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. |