class Task_<T>

webdriver.promise.Deferred<T>
  └ webdriver.promise.Task_
All implemented interfaces:
webdriver.promise.Thenable<T>

A task to be executed by a webdriver.promise.ControlFlow.

new Task_(flow, fn, description)

Parameters
flowwebdriver.promise.ControlFlow

The flow this instances belongs to.

fnfunction(): (T|webdriver.promise.Promise<T>)

The function to call when the task executes. If it returns a webdriver.promise.Promise, the flow will wait for it to be resolved before starting the next task.

descriptionstring

A description of the task for debugging.

Instance Methods

execute()code »


getDescription()code »

Returns
string

This task's description.


getFrame()code »

Returns
webdriver.promise.Frame_

frame The frame used to run this task's #execute method.


setFrame(frame)code »

Parameters
framewebdriver.promise.Frame_

The frame used to run this task's #execute method.


setParent(frame)code »

Parameters
framewebdriver.promise.Frame_

The frame this task is scheduled in.


toString()code »

Returns
string