'Contact Type B' => 'Individual',
);
foreach ($data as $param => $val) {
- $this->assertElementContainsText('option11', $val, "Could not able to save $param");
+ $this->assertElementContainsText("xpath=//table[@class='display dataTable no-footer']", $val, "Could not able to save $param");
}
}
// 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->waitForElementPresent('_qf_Activity_cancel-bottom');
- $this->waitForElementPresent("xpath=id('Activity')/div[2]/table[1]/tbody/tr[5]/td[2]/span");
+ $this->waitForElementPresent("xpath=//div[@class='ui-dialog-buttonset']/button[3]");
// verify Activity created
- $this->verifyText("xpath=id('Activity')/div[2]/table[1]/tbody/tr[5]/td[2]/span", $campaignTitle);
+ $this->verifyText("xpath=//form[@id='Activity']/div[2]/table/tbody/tr[5]/td[2]/span", $campaignTitle);
}
}
$this->waitForElementPresent("event_type_id");
$this->select2("event_type_id", "Conference");
$this->click("_qf_Advanced_refresh");
- $this->waitForPageToLoad($this->getTimeoutMsec());
$this->waitForElementPresent('search-status');
$this->assertElementContainsText('search-status', '2 Contacts');
}
// Select an event fee
$this->waitForElementPresent("xpath=//div[@id='priceset']/div[2]/div[2]");
- $this->type("//div[@id='priceset']/div[2]/div[2]/input", '5');
- $this->fireEvent("//div[@id='priceset']/div[2]/div[2]/input", 'blur');
+ $this->type("xpath=//div[@id='priceset']/div[2]/div[2]/input", '5');
+ $this->fireEvent("xpath=//div[@id='priceset']/div[2]/div[2]/input", 'blur');
+ $this->waitForElementPresent("xpath=//div[@id='priceset']/div[3]/div[2]/div[1]/span/input");
$this->click("xpath=//div[@id='priceset']/div[3]/div[2]/div[1]/span/input");
$this->click("xpath=//div[@id='priceset']/div[4]/div[2]/div[1]/span/input");
$this->click("xpath=//div[@id='priceset']/div[4]/div[2]/div[2]/span/input");