PageChangeStep
public class PageChangeStep : Step, NavigableStep
Step that runs some script, which will result in a new page being loaded.
-
Initializer.
Declaration
Swift
public init( functionName: String, params: Any..., paramsKeys: [String] = [], assertionName: String? = nil )
Parameters
functionName
The name of the JavaScript function to call. The module namespace is automatically added.
params
Parameters which will be passed to the JavaScript function.
paramsKeys
Look up the values from the JSON model dictionary using these keys, and pass them as the parameters to the JavaScript function. If provided, these are used instead of
params
.assertionName
Name of JavaScript function that checks whether the page loaded correctly.
-
Declaration
Swift
public func run(with browser: Browser, model: JSON, completion: @escaping StepCompletionCallback)