PMA_SeleniumBase::waitForElement PHP Method

waitForElement() public method

Wait for an element to be present on the page
public waitForElement ( string $func, string $arg ) : PHPUnit_Extensions_Selenium2TestCase_Element
$func string Locate using - byCss, byXPath, etc
$arg string Selector
return PHPUnit_Extensions_Selenium2TestCase_Element Element waited for
    public function waitForElement($func, $arg)
    {
        $this->timeouts()->implicitWait(10000);
        $element = call_user_func_array(array($this, $func), array($arg));
        $this->timeouts()->implicitWait(0);
        return $element;
    }