public/phpmyadmin/test/selenium/TestBase.php
/**
     * Wait for an element to be present on the page
     *
     * @param string $func Locate using - byCss, byXPath, etc
     * @param string $arg  Selector
     *
     * @return PHPUnit_Extensions_Selenium2TestCase_Element  Element waited for
     */
Wait for an element to be present on the page
@param string $func Locate using - byCss, byXPath, etc
@param string $arg  Selector

@return PHPUnit_Extensions_Selenium2TestCase_Element  Element waited for
Wait for an element to be present on the page @param string $func Locate using - byCss byXPath etc @param string $arg Selector @return PHPUnit_Extensions_Selenium2TestCase_Element Element waited for
public function waitForElement($func, $arg)
    {
        try {
            return call_user_func_array(
                array($this, $func), array($arg)
            );
        } catch(\Exception $e) {
        }
        $this->timeouts()->implicitWait(10000);
        $element = call_user_func_array(
            array($this, $func), array($arg)
        );
        $this->timeouts()->implicitWait(0);
        return $element;
    }
public function waitForElement ( $ func , $ arg ) { try { return call_user_func_array ( array ( $ this , $ func ) , array ( $ arg ) ) ; } catch ( \ Exception $ e ) { } $ this -> timeouts ( ) -> implicitWait ( 10000 ) ; $ element = call_user_func_array ( array ( $ this , $ func ) , array ( $ arg ) ) ; $ this -> timeouts ( ) -> implicitWait ( 0 ) ; return $ element ; }
Wait for an element to be present on the page
 @param string $func Locate using - byCss, byXPath, etc
 @param string $arg  Selector
Wait for an element to be present on the page @param string $func Locate using - byCss byXPath etc @param string $arg Selector
// Element not present, fall back to waiting