WaitForConditionStep
public class WaitForConditionStep : Step
Step that waits for condition to become true before proceeding, failing if the condition is still false when timeout occurs.
-
Initializer.
Declaration
Swift
public init(assertionName: String, timeoutInSeconds: TimeInterval, params: Any..., paramsKeys: [String] = [])
Parameters
assertionName
Name of JavaScript function that evaluates the conditions and returns a Boolean.
timeoutInSeconds
The number of seconds before the step fails due to timeout.
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
. -
Declaration
Swift
public func run(with browser: Browser, model: JSON, completion: @escaping StepCompletionCallback)