Webtest fix
authorRohan Katkar <rohan.katkar@webaccessglobal.com>
Fri, 26 Dec 2014 13:35:00 +0000 (19:05 +0530)
committerRohan Katkar <rohan.katkar@webaccessglobal.com>
Fri, 26 Dec 2014 13:35:00 +0000 (19:05 +0530)
tests/phpunit/WebTest/Campaign/PetitionUsageScenarioTest.php

index 7c467eff27c6b2ce417f3e371cd22265bec51894..dd573e9071a6c9368e0a94be3185988359cc11bd 100644 (file)
@@ -253,7 +253,7 @@ class WebTest_Campaign_PetitionUsageScenarioTest extends CiviSeleniumTestCase {
     $this->type("petition_title", $title);
     $this->click("xpath=//div[@class='crm-accordion-body']/table/tbody/tr[2]/td/a[text()='Search']");
 
-    $this->waitForElementPresent("xpath=//table[@class='petitions dataTable no-footer']/tbody/tr/td[10]/span[2][text()='more']");
+    $this->waitForElementPresent("xpath=//div[@class='dataTables_wrapper no-footer']/table/tbody/tr/td[10]/span[2][text()='more']");
     $this->click("xpath=//table[@class='petitions dataTable no-footer']/tbody/tr/td[10]/span[2][text()='more']/ul/li[3]/a[text()='Signatures']");
     $this->waitForPageToLoad($this->getTimeoutMsec());