$this->type("sort_name", $firstName1);
$this->click("_qf_Search_refresh");
- $this->waitForElementPresent("Go");
- $this->click("xpath=id('Search')/div[3]/div/div[2]/table/tbody/tr[3]/td[9]/span/a[text()='View']");
- $this->waitForElementPresent("_qf_Activity_cancel-bottom");
+ $this->waitForElementPresent("xpath=//table[@class='selector row-highlight']/tbody//tr/td[6]/a[text()='Summerson, $firstName2']/../../td[9]/span/a[text()='View']");
+ $this->click("xpath=//table[@class='selector row-highlight']/tbody//tr/td[6]/a[text()='Summerson, $firstName2']/../../td[9]/span/a[text()='View']");
+ $this->waitForElementPresent("xpath=//div[@class='ui-dialog-buttonset']/button[3]/span[2]");
$this->VerifyTabularData(
array(
$this->select("extends[0]", "value=Contact");
$this->click("//option[@value='Contact']");
$this->click("_qf_Group_next-bottom");
- $this->waitForElementPresent("_qf_Field_cancel-bottom");
+ $this->waitForElementPresent("newCustomField");
//Is custom group created?
+ $this->click("newCustomField");
$this->waitForText('crm-notification-container', "Your custom field set '{$customGroupTitle}' has been added. You can add custom fields now.");
$customGroupId = $this->urlArg('gid');
// Add contact reference fields
$contactRefFieldLabel1 = 'contact_ref_' . substr(sha1(rand()), 0, 4);
+ $this->waitForElementPresent("label");
$this->click("label");
+ $this->waitForElementPresent("label");
$this->type("label", $contactRefFieldLabel1);
+ $this->waitForElementPresent("data_type[0]");
$this->select("data_type[0]", "label=Contact Reference");
$this->waitForElementPresent("group_id");
$this->select("group_id", $groupName);
//clicking save
- $this->click("_qf_Field_next_new-bottom");
- $this->waitForPageToLoad($this->getTimeoutMsec());
+ $this->click("xpath=//div[@class='ui-dialog-buttonset']/button[2]/span[2]/");
//Is custom field created?
$this->waitForText('crm-notification-container', "Custom field '$contactRefFieldLabel1' has been saved.");
-
+ $this->waitForElementPresent("xpath=//div[@class='ui-dialog-buttonset']/button[3]/span[2]/");
//add custom field - alphanumeric checkbox
$contactRefFieldLabel2 = 'contact_ref_' . substr(sha1(rand()), 0, 4);
+
$this->click("label");
+ $this->waitForElementPresent("label");
$this->type("label", $contactRefFieldLabel2);
+ $this->waitForElementPresent("data_type[0]");
$this->select("data_type[0]", "label=Contact Reference");
$this->waitForElementPresent("group_id");
$this->type("filter", "action=get&contact_type=Organization");
//clicking save
- $this->click("_qf_Field_next-bottom");
- $this->waitForPageToLoad($this->getTimeoutMsec());
+ $this->click("xpath=//div[@class='ui-dialog-buttonset']/button[1]/span[2]/");
//Is custom field created?
$this->waitForText('crm-notification-container', "Custom field '$contactRefFieldLabel2' has been saved.");
$this->type("name", "Mailing $mailingName Webtest");
// Add the test mailing group
- $this->select("includeGroups-f", "$groupName");
- $this->click("add");
+ $this->select("includeGroups", "$groupName");
// click next
$this->click("_qf_Group_next");
$this->type("sort_name", $firstName);
$this->click("activity_type_id[19]");
$this->click("_qf_Search_refresh");
- $this->waitForElementPresent("_qf_Search_next_print");
-
- $this->click("xpath=id('Search')/div[3]/div/div[2]/table/tbody/tr[2]/td[9]/span/a[text()='View']");
- $this->waitForElementPresent("_qf_ActivityView_next");
+ $this->waitForElementPresent("xpath=//form[@id='Search']/div[3]/div/div[2]/table[@class='selector row-highlight']/tbody/tr[2]/td[9]/span/a[1][text()='View']");
+ $this->click("xpath=//form[@id='Search']/div[3]/div/div[2]/table[@class='selector row-highlight']/tbody/tr[2]/td[9]/span/a[1][text()='View']");
+ $this->waitForElementPresent("xpath=//div[@class='ui-dialog-buttonset']/button/span[2]");
$this->assertElementContainsText('help', "Bulk Email Sent.", "Status message didn't show up after saving!");
}
}