new UrlParameterIterator()
METHODS
-
next()
-
Proceeds to the next item in the list of url parameters, refreshing the browser with the coorespoinging url.
-
setup(urlParametersList, postIterationCallbackOwner, postIterationCallackName)
-
Function that informs the UrlParameterIterator of the set of url parameters that it will iterate over. This function must be called un-conditionally upon every refresh in order for the UrlPerameterIterator to function properly.
Parameters:
Name Type Attributes Default Description urlParametersListArray.<object> Array of objects where each object represents the active url parameters for a particular iteration.
postIterationCallbackOwnerobject The object owning the callback function to be called when the iteration completes.
postIterationCallackNamestring The name of the callback function to be called when the iteration completes.
-
start(startingIndex (opt))
-
Starts the process of refreshing the browser, iterating through the list of url parameters provided in 'UrlParameterIterator.setup'.
Parameters:
Name Type Attributes Default Description startingIndexnumber <optional>
Optional starting index, enabling iteration to start at a non-zero value. [DEFAULT: 0]