public/phpmyadmin/test/selenium/TestBase.php
/**
     * Check if element is present or not
     *
     * @param string $func Locate using - byCss, byXPath, etc
     * @param string $arg  Selector
     *
     * @return bool Whether or not the element is present
     */
Check if element is present or not
@param string $func Locate using - byCss, byXPath, etc
@param string $arg  Selector

@return bool Whether or not the element is present
Check if element is present or not @param string $func Locate using - byCss byXPath etc @param string $arg Selector @return bool Whether or not the element is present
public function isElementPresent($func, $arg)
    {
        try {
            $element = call_user_func_array(
                array($this, $func), array($arg)
            );
        } catch (\PHPUnit_Extensions_Selenium2TestCase_WebDriverException $e) {
            return false;
        } catch (\InvalidArgumentException $e) {
            return false;
        }
        return true;
    }
public function isElementPresent ( $ func , $ arg ) { try { $ element = call_user_func_array ( array ( $ this , $ func ) , array ( $ arg ) ) ; } catch ( \ PHPUnit_Extensions_Selenium2TestCase_WebDriverException $ e ) { return false ; } catch ( \ InvalidArgumentException $ e ) { return false ; } return true ; }
Check if element is present or not
 @param string $func Locate using - byCss, byXPath, etc
 @param string $arg  Selector
Check if element is present or not @param string $func Locate using - byCss byXPath etc @param string $arg Selector
// Element not present // Element not present // Element Present