Namespace: webdriver.promiseView Sourceclass 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)Parametersflowwebdriver.promise.ControlFlowThe 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.descriptionstringA description of the task for debugging.Instance Methodsexecute()code »Returns(T|webdriver.promise.Promise<T>)getDescription()code »ReturnsstringThis task's description.getFrame()code »Returnswebdriver.promise.Frame_frame The frame used to run this task's #execute method.setFrame(frame)code »Parametersframewebdriver.promise.Frame_The frame used to run this task's #execute method.setParent(frame)code »Parametersframewebdriver.promise.Frame_The frame this task is scheduled in.toString()code »Returnsstring