+--------------------------------------------------------------------+
| CiviCRM version 4.7 |
+--------------------------------------------------------------------+
- | Copyright CiviCRM LLC (c) 2004-2016 |
+ | Copyright CiviCRM LLC (c) 2004-2017 |
+--------------------------------------------------------------------+
| This file is a part of CiviCRM. |
| |
case 'string':
if ($val && substr($val, 0, 5) == 'date:') {
$val = date('m/d/Y', strtotime(trim(substr($val, 5))));
- $item = "xpath=//input[starts-with(@id, '{$item}_display_')]";
+ $item = "xpath=//input[@id='{$item}']/following-sibling::input";
}
if ($val) {
$this->assertElementValueEquals($item, $val);