From b481fc6f5004e3d7d9911c2d20575d8f3e75fb1c Mon Sep 17 00:00:00 2001 From: Deepak Srivastava Date: Thu, 14 Mar 2013 16:31:19 +0530 Subject: [PATCH] towards webtest fixes --- tests/phpunit/WebTest/Report/LoggingReportTest.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tests/phpunit/WebTest/Report/LoggingReportTest.php b/tests/phpunit/WebTest/Report/LoggingReportTest.php index 4e736a347f..8195b1a3ae 100644 --- a/tests/phpunit/WebTest/Report/LoggingReportTest.php +++ b/tests/phpunit/WebTest/Report/LoggingReportTest.php @@ -59,8 +59,8 @@ class WebTest_Report_LoggingReportTest extends CiviSeleniumTestCase { $this->click("_qf_GroupContact_next"); $this->waitForPageToLoad($this->getTimeoutMsec()); - $this->waitForElementPresent("xpath=//div[@id='groupContact']/div/div[4]/table/tbody/tr/td[4]/a"); - $this->click("xpath=//div[@id='groupContact']/div/div[4]/table/tbody/tr/td[4]/a"); + $this->waitForElementPresent("xpath=//form[@id='GroupContact']//div[@class='view-content']//div[@class='dataTables_wrapper']/table/tbody/tr/td[4]/a"); + $this->click("xpath=//form[@id='GroupContact']//div[@class='view-content']//div[@class='dataTables_wrapper']/table/tbody/tr/td[4]/a"); // Check confirmation alert. $this->assertTrue((bool)preg_match("/^Are you sure you want to remove/", -- 2.25.1