failing webtest fix
authorjitendrapurohit <jitendra.purohit@webaccessglobal.com>
Tue, 10 Mar 2015 09:34:34 +0000 (15:04 +0530)
committerjitendrapurohit <jitendra.purohit@webaccessglobal.com>
Tue, 10 Mar 2015 09:34:34 +0000 (15:04 +0530)
tests/phpunit/WebTest/Campaign/PetitionUsageScenarioTest.php

index 6a10e2737772ab58835055618133c3c361e85d88..7a55ec4e77ec17c74523e563f502b927d9d45f1e 100644 (file)
@@ -121,8 +121,8 @@ 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=//div[@class='dataTables_wrapper no-footer']/table/tbody/tr/td[10]/span[2][text()='more']/ul/li[2]/a[text()='Sign']");
-    $url = $this->getAttribute("xpath=//div[@class='dataTables_wrapper no-footer']/table/tbody/tr/td[10]/span[2][text()='more']/ul/li[2]/a[text()='Sign']@href");
+    $this->waitForElementPresent("xpath=//table[@class='petitions dataTable no-footer']/tbody//tr/td[10]/span[2][text()='more']/ul/li[2]/a[text()='Sign']");
+    $url = $this->getAttribute("xpath=//table[@class='petitions dataTable no-footer']/tbody//tr/td[10]/span[2][text()='more']/ul/li[2]/a[text()='Sign']@href");
 
     ////////////// Retrieve Sign Petition Url /////////////////////////