public/phpmyadmin/test/selenium/TestBase.php
/**
     * Navigates browser to a database page.
     *
     * @param string $database Name of database
     *
     * @return void
     */
Navigates browser to a database page.
@param string $database Name of database

@return void
Navigates browser to a database page . @param string $database Name of database @return void
public function navigateDatabase($database, $gotoHomepageRequired = false)
    {
        if ($gotoHomepageRequired) {
            $this->gotoHomepage();
        }
        $this->waitForElement('byPartialLinkText','Databases')->click();
        $this->waitAjax();
        $this->waitForElement(
            'byXPath',
            '//tr[(contains(@class, "db-row"))]//a[contains(., "' . $this->database_name . '")]'
        )->click();
        $this->waitAjax();
        $this->waitForElement(
            "byXPath",
            "//a[@class='tabactive' and contains(., 'Structure')]"
        );
    }
public function navigateDatabase ( $ database , $ gotoHomepageRequired = false ) { if ( $ gotoHomepageRequired ) { $ this -> gotoHomepage ( ) ; } $ this -> waitForElement ( 'byPartialLinkText' , 'Databases' ) -> click ( ) ; $ this -> waitAjax ( ) ; $ this -> waitForElement ( 'byXPath' , '//tr[(contains(@class, "db-row"))]//a[contains(., "' . $ this -> database_name . '")]' ) -> click ( ) ; $ this -> waitAjax ( ) ; $ this -> waitForElement ( " byXPath " , " //a[@class='tabactive' and contains(., 'Structure')] " ) ; }
Navigates browser to a database page.
Navigates browser to a database page .
// Go to server databases // go to specific database page // Wait for it to load