// Is status message correct?
$this->waitForText('crm-notification-container', $subject);
- $this->waitForElementPresent(
- "xpath=//table[@class='contact-activity-selector-activity dataTable no-footer']//tbody//tr[2]/td[8]/span/a[text()='View']");
+ $this->waitForElementPresent("xpath=//div[@class='crm-activity-selector-activity']/div[2]/table/tbody/tr[2]/td[8]/span[1]/a[1][text()='View']");
// click through to the Activity view screen
- $this->click("xpath=//table[@class='contact-activity-selector-activity dataTable no-footer']//tbody//tr[2]/td[8]/span/a[text()='View']");
+ $this->click("xpath=//div[@class='crm-activity-selector-activity']/div[2]/table/tbody/tr[2]/td[8]/span[1]/a[1][text()='View']");
$this->waitForElementPresent('_qf_Activity_cancel-bottom');
// verify Activity created
// Is status message correct?
$this->waitForText('crm-notification-container', $subject);
- $this->waitForElementPresent("xpath=//div[@class='dataTables_wrapper no-footer']/table/tbody/tr[1]/td[8]/span/a[1][text()='View']");
+ $this->waitForElementPresent("xpath=//div[@class='crm-activity-selector-activity']/div[2]/table/tbody/tr[2]/td[8]/span[1]/a[1][text()='View']");
// click through to the Activity view screen
- $this->click("xpath=//table[@class='contact-activity-selector-activity dataTable no-footer']/tbody//tr[2]/td[8]/span/a[text()='View']");
+ $this->click("xpath=//div[@class='crm-activity-selector-activity']/div[2]/table/tbody/tr[2]/td[8]/span[1]/a[1][text()='View']");
$this->waitForElementPresent("xpath=//button//span[contains(text(),'Done')]");
// verify Activity created
$this->openCiviPage('contact/search', 'reset=1', '_qf_Basic_refresh');
$this->type("sort_name", $sortName);
$this->select("contact_type", "value=Individual");
- $this->clickLink("_qf_Basic_refresh", "xpath=//form[@id='Basic']/div[3]/div/div[2]/table/tbody/tr/");
+ $this->clickLink("_qf_Basic_refresh", "xpath=//form[@id='Basic']//div/div//div/table/tbody/tr/");
// click through to the Relationship view screen
- $this->click("xpath=//form[@id='Basic']/div[3]/div/div[2]/table/tbody/tr/td[11]/span/a[text()='View']");
+ $this->click("xpath=//form[@id='Basic']//div/div//div/table/tbody/tr/td[11]/span/a[text()='View']");
$this->waitForPageToLoad($this->getTimeoutMsec());
$this->click("css=li#tab_participant a");
//check the status message
$this->waitForText('crm-notification-container', 'Relationship created.');
- $this->waitForElementPresent("xpath=//table[@class='crm-contact-relationship-selector-current dataTable no-footer']/tbody/tr/td[9]/span/a[1][text()='View']");
- $this->click("xpath=//table[@class='crm-contact-relationship-selector-current dataTable no-footer']/tbody/tr/td[9]/span/a[1][text()='View']");
+ $this->waitForElementPresent("xpath=//div[@id='contact-summary-relationship-tab']/div[2]/div[1]/table/tbody/tr/td[9]/span[1]/a[1]");
+ $this->click("xpath=//div[@id='contact-summary-relationship-tab']/div[2]/div[1]/table/tbody/tr/td[9]/span[1]/a[1]");
$this->webtestVerifyTabularData(
array(
$this->assertTrue($this->isTextPresent("The tag '$tagName' has been saved."));
// sort by ID desc
- $this->click("xpath=//table//tr/th[text()=\"ID\"]");
+ $this->click("xpath=//div[@id='cat']/div/table/thead/tr/th[2]/div[text()='ID']");
$this->waitForElementPresent("css=table.display tbody tr td");
// verify text
$this->assertTrue($this->isTextPresent("The tag '$tagSetName' has been saved."));
// sort by ID desc
- $this->click("xpath=//table//tr/th[text()=\"ID\"]");
+ $this->click("xpath=//div[@id='cat']/div/table/thead/tr/th[2]/div[text()='ID']");
$this->waitForElementPresent("css=table.display tbody tr td");
// verify text
$this->waitForText('crm-notification-container', "The tag '$tagSetName' has been saved.");
// sort by ID desc
- $this->click("xpath=//table//tr/th[text()=\"ID\"]");
+ $this->click("xpath=//div[@id='cat']/div/table/thead/tr/th[2]/div[text()='ID']");
$this->waitForElementPresent("css=table.display tbody tr td");
// verify text
$this->click("xpath=//div[@class='dataTables_wrapper no-footer']/table/tbody/tr//td//span/a[text()='Edit']");
$this->waitForElementPresent("_qf_Activity_cancel-bottom");
$this->select("status_id", "value=2");
+ $this->waitForAjaxContent();
$this->click('_qf_Activity_upload-bottom');
$this->waitForText("crm-notification-container", "Activity has been saved.");
- $this->waitForElementPresent("xpath=//table[@class='contact-activity-selector-activity dataTable no-footer']/tbody/tr/td[7][text()='Completed']");
+ $this->waitForElementPresent("xpath=//div[@class='dataTables_wrapper no-footer']/table/tbody/tr/td[7]/div");
+ $this->verifyText("xpath=//div[@class='dataTables_wrapper no-footer']/table/tbody/tr/td[7]/div", 'Completed');
//add a case
- $this->waitForAjaxContent();
$this->click("xpath=//li[@id='tab_case']/a");
$this->waitForElementPresent("xpath=//form[@id='Search']//div/div//div[@class='action-link']/a");
$this->click("xpath=//form[@id='Search']//div/div//div[@class='action-link']/a");
$this->type('activity_subject', "subject" . rand());
$this->select('case_type_id', 'value=1');
$this->click('_qf_Case_upload-bottom');
- $this->waitForElementPresent("xpath=//table[@class='caseSelector']/tbody//tr/td[9]//span/a[text()='Manage']");
- $this->click("xpath=//table[@class='caseSelector']/tbody//tr/td[9]//span/a[text()='Manage']");
+ $this->waitForElementPresent("xpath=//table[@class='caseSelector']/tbody//tr/td[9]//span/a[1][text()='Manage']");
+ $this->click("xpath=//table[@class='caseSelector']/tbody//tr/td[9]//span/a[1][text()='Manage']");
$this->waitForElementPresent("xpath=//form[@id='CaseView']/div[2]/table/tbody/tr/td[4]/a");
$this->click("xpath=//form[@id='CaseView']/div[2]/table/tbody/tr/td[4]/a");
$this->waitForElementPresent("_qf_Activity_cancel-bottom");