From 283d1f3e4c227145fc4bd16124998b4d837465eb Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Michal=20=C4=8Ciha=C5=99?= Date: Mon, 24 Feb 2014 11:25:32 +0100 Subject: [PATCH] Shorter path to get into browse mode MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Michal Čihař --- test/selenium/PmaSeleniumTableBrowseTest.php | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/test/selenium/PmaSeleniumTableBrowseTest.php b/test/selenium/PmaSeleniumTableBrowseTest.php index 0a520d4fb3..4f589564df 100644 --- a/test/selenium/PmaSeleniumTableBrowseTest.php +++ b/test/selenium/PmaSeleniumTableBrowseTest.php @@ -50,8 +50,10 @@ class PMA_SeleniumTableBrowseTest extends PMA_SeleniumBase { $this->login(); $this->waitForElement('byLinkText', $this->database_name)->click(); - $this->waitForElement("byLinkText", "test_table"); - $this->byLinkText("Browse")->click(); + $this->waitForElement( + "byXPath", + "//*[@id='pma_navigation_tree']//a[contains(., 'test_table')]" + )->click(); $this->waitForElement("byId", "table_results"); }