From d7c213b63ebf8dffa688e1db7d8fb55e3129450c Mon Sep 17 00:00:00 2001 From: Web Access Date: Fri, 6 Feb 2015 17:50:01 +0530 Subject: [PATCH] Webtest fix --- tests/phpunit/CiviTest/CiviSeleniumTestCase.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/phpunit/CiviTest/CiviSeleniumTestCase.php b/tests/phpunit/CiviTest/CiviSeleniumTestCase.php index e5fc6627de..4df99add86 100644 --- a/tests/phpunit/CiviTest/CiviSeleniumTestCase.php +++ b/tests/phpunit/CiviTest/CiviSeleniumTestCase.php @@ -552,7 +552,7 @@ class CiviSeleniumTestCase extends PHPUnit_Extensions_SeleniumTestCase { $mon = date('n', $timeStamp) - 1; $day = date('j', $timeStamp); - $this->click("{$dateElement}_display"); + $this->click("xpath=//input[starts-with(@id, '{$dateElement}_display_')]"); $this->waitForElementPresent("css=div#ui-datepicker-div.ui-datepicker div.ui-datepicker-header div.ui-datepicker-title select.ui-datepicker-month"); $this->select("css=div#ui-datepicker-div.ui-datepicker div.ui-datepicker-header div.ui-datepicker-title select.ui-datepicker-month", "value=$mon"); $this->select("css=div#ui-datepicker-div div.ui-datepicker-header div.ui-datepicker-title select.ui-datepicker-year", "value=$year"); -- 2.25.1