<?php
/*
+--------------------------------------------------------------------+
- | CiviCRM version 4.6 |
+ | CiviCRM version 4.7 |
+--------------------------------------------------------------------+
- | Copyright CiviCRM LLC (c) 2004-2014 |
+ | Copyright CiviCRM LLC (c) 2004-2015 |
+--------------------------------------------------------------------+
| This file is a part of CiviCRM. |
| |
| GNU Affero General Public License or the licensing of CiviCRM, |
| see the CiviCRM license FAQ at http://civicrm.org/licensing |
+--------------------------------------------------------------------+
-*/
+ */
require_once 'CiviTest/CiviSeleniumTestCase.php';
parent::setUp();
}
- function testScheduleReminder() {
+ public function testScheduleReminder() {
$this->webtestLogin();
// Add new Schedule Reminder
$this->click('_qf_ScheduleReminders_next-bottom');
$this->waitForPageToLoad($this->getTimeoutMsec());
- $this->click("//div[@id='reminder']//div[@id='option11_wrapper']/table/tbody//tr/td[1][text()='{$title}']/../td[7]/span/a[text()='Edit']");
+ $this->click("xpath=//div[@id='reminder']/div/table/tbody//tr/td[1]/div[text()='{$title}']/../../td[7]/span/a[text()='Edit']");
$this->waitForElementPresent('_qf_ScheduleReminders_cancel-bottom');
$this->assertEquals($title, $this->getValue('id=title'));
$this->assertEquals('1', $this->getSelectedValue('id=recipient'));
$this->assertChecked('is_active');
}
-}
+}