_generated\WebGuyActions::waitForJS PHP Method

waitForJS() public method

Executes JavaScript and waits up to $timeout seconds for it to return true. In this example we will wait up to 60 seconds for all jQuery AJAX requests to finish. php waitForJS("return $.active == 0;", 60); ?>
See also: Codeception\Module\WebDriver::waitForJS()
public waitForJS ( string $script, integer $timeout = null )
$script string
$timeout integer seconds
    public function waitForJS($script, $timeout = null)
    {
        return $this->getScenario()->runStep(new \Codeception\Step\Action('waitForJS', func_get_args()));
    }
WebGuyActions