PMA_SeleniumBase::navigateTable PHP Method

navigateTable() public method

Navigates browser to a table page.
public navigateTable ( string $table ) : void
$table string Name of table
return void
    public function navigateTable($table)
    {
        // go to database page
        $this->waitForElement("byLinkText", $this->database_name)->click();
        /* Wait for loading and expanding tree */
        $this->waitForElement('byCssSelector', 'li.last.table');
        /* TODO: Timing issue of expanding navigation tree */
        $this->sleep();
        // go to table page
        $this->waitForElement("byXPath", "//*[@id='pma_navigation_tree_content']//a[contains(., '{$table}')]")->click();
        // Wait for it to load
        $this->waitForElement("byXPath", "//a[@class='tabactive' and contains(., 'Browse')]");
    }