public/phpmyadmin/test/selenium/ImportTest.php
/**
     * Function that goes to the import page, uploads a file and submit form
     *
     * @param string $type level: server, db or import
     *
     * @return void
     */
Function that goes to the import page, uploads a file and submit form
@param string $type level: server, db or import

@return void
Function that goes to the import page uploads a file and submit form @param string $type level : server db or import @return void
private function _doImport($type)
    {
        $this->waitForElement('byPartialLinkText', "Import")->click();
        $this->waitAjax();
        $this->waitForElement("byId", "input_import_file");
        $this->waitForElement('byCssSelector', 'label[for=radio_local_import_file]')->click();
        $this->select($this->byName("local_import_file"))
            ->selectOptionByLabel($type . "_import.sql");
        $this->scrollToBottom();
        $this->byId("buttonGo")->click();
        $this->waitForElement(
            "byXPath",
            "//div[@class='success' and contains(., 'Import has been successfully')]"
        );
    }
private function _doImport ( $ type ) { $ this -> waitForElement ( 'byPartialLinkText' , " Import " ) -> click ( ) ; $ this -> waitAjax ( ) ; $ this -> waitForElement ( " byId " , " input_import_file " ) ; $ this -> waitForElement ( 'byCssSelector' , 'label[for=radio_local_import_file]' ) -> click ( ) ; $ this -> select ( $ this -> byName ( " local_import_file " ) ) -> selectOptionByLabel ( $ type . " _import.sql " ) ; $ this -> scrollToBottom ( ) ; $ this -> byId ( " buttonGo " ) -> click ( ) ; $ this -> waitForElement ( " byXPath " , " //div[@class='success' and contains(., 'Import has been successfully')] " ) ; }
Function that goes to the import page, uploads a file and submit form
 @param string $type level: server, db or import
Function that goes to the import page uploads a file and submit form @param string $type level : server db or import