$this->clickLink('_qf_Builder_refresh');
$this->waitForAjaxContent();
- $this->waitForText('search-status', "2 Contacts");
+ $this->assertElementContainsText("xpath=//div[@id='search-status']/table/tbody/tr[1]/td", "2 Contacts");
$this->click("xpath=//div[@class='crm-accordion-header crm-master-accordion-header']");
$this->enterValues(1, 2, 'Membership', 'Membership Status', NULL, '=', array('New'));
$this->clickLink('_qf_Builder_refresh');
$this->waitForAjaxContent();
- $this->waitForText('search-status', "1 Contact");
+ $this->assertElementContainsText("xpath=//div[@id='search-status']/table/tbody/tr[1]/td", "1 Contact");
$this->enterValues(1, 2, 'Membership', 'Membership Status', NULL, '=', array('Grace'));
$this->clickLink('_qf_Builder_refresh');
$this->waitForAjaxContent();
- $this->waitForText('search-status', "1 Contact");
+ $this->assertElementContainsText("xpath=//div[@id='search-status']/table/tbody/tr[1]/td", "1 Contact");
$this->click("xpath=//div[@class='crm-accordion-header crm-master-accordion-header']");
$this->waitForElementPresent("xpath=//div[@id='map-field']/div[1]/table/tbody/tr[2]/td/a");
$this->enterValues(1, 2, 'Membership', 'Membership Status', NULL, 'IN', array('New', 'Grace'));
$this->clickLink('_qf_Builder_refresh');
$this->waitForAjaxContent();
- $this->waitForText('search-status', "2 Contacts");
+ $this->assertElementContainsText("xpath=//div[@id='search-status']/table/tbody/tr[1]/td", "2 Contacts");
$this->click("xpath=//div[@class='crm-accordion-header crm-master-accordion-header']");
$this->waitForElementPresent("xpath=//div[@id='map-field']/div[1]/table/tbody/tr[2]/td/a");
$this->multiselect2("membership_status_id", array("New", "Grace"));
$this->clickLink('_qf_Search_refresh');
$this->waitForAjaxContent();
- $this->waitForText('search-status', "2 Results");
+ $this->assertElementContainsText("xpath=//div[@id='search-status']/table/tbody/tr[1]/td", "2 Results");
$this->openCiviPage("member/search", "reset=1", "_qf_Search_refresh");
$this->waitForAjaxContent();
$this->multiselect2("membership_status_id", array("New"));
$this->click('_qf_Search_refresh');
$this->waitForAjaxContent();
- $this->waitForText('search-status', "1 Result");
+ $this->assertElementContainsText("xpath=//div[@id='search-status']/table/tbody/tr[1]/td", "1 Result");
}
}
$this->select("state_province-1", "value=1001");
$this->assertTrue($this->isTextPresent("Payment Method"));
- $xpath = "xpath=//label[text() = '{$proProcessorName}']/preceding-sibling::input[1]";
- $this->click($xpath);
+ $this->waitForElementPresent("xpath=//label[text() = '{$proProcessorName}']/preceding-sibling::input[1]");
+ $this->click("xpath=//label[text() = '{$proProcessorName}']/preceding-sibling::input[1]");
$this->waitForElementPresent("credit_card_type");
$this->waitForElementPresent("xpath=//div[@class='bold pay_later_receipt-section']");
$payLaterInstructionsText = "Pay later instructions $hash";
- $this->verifyText("xpath=//div[@class='bold pay_later_receipt-section']/p", $payLaterInstructionsText);
+ $this->assertElementContainsText("xpath=//div[@class='bold pay_later_receipt-section']/p", $payLaterInstructionsText);
$this->click("_qf_Confirm_next-bottom");
$this->waitForElementPresent("xpath=//div[@class='help']/div/p");
- $this->verifyText("xpath=//div[@class='help']/div/p", $payLaterInstructionsText);
+ $this->assertElementContainsText("xpath=//div[@class='help']/div/p", $payLaterInstructionsText);
//login to check contribution
$this->openCiviPage("contribute/search", "reset=1", 'contribution_date_low');
$this->webtestLogin();
$amount = 100.00;
$this->_testOfflineContribution($amount, "Pending");
- $this->waitForElementPresent("xpath=//div[@class='view-content']//table[@class='selector row-highlight']/tbody/tr[1]/td[8]/span/a[text()='Edit']");
- $this->clickLink("xpath=//div[@class='view-content']//table[@class='selector row-highlight']/tbody/tr[1]/td[8]/span/a[text()='Edit']", '_qf_Contribution_cancel-bottom', FALSE);
+ $this->waitForElementPresent("xpath=//table[@class='selector row-highlight']/tbody/tr[1]/td[8]/span/a[text()='Edit']");
+ $this->clickLink("xpath=//table[@class='selector row-highlight']/tbody/tr[1]/td[8]/span/a[text()='Edit']", '_qf_Contribution_cancel-bottom', FALSE);
//Contribution status
$this->select("contribution_status_id", "label=Cancelled");
- $contId = explode('&id=', $this->getAttribute("xpath=//div[@class='view-content']//table[@class='selector row-highlight']/tbody/tr[1]/td[8]/span/a[text()='Edit']@href"));
+ $contId = explode('&id=', $this->getAttribute("xpath=//table[@class='selector row-highlight']/tbody/tr[1]/td[8]/span/a[text()='Edit']@href"));
$contId = explode('&', $contId[1]);
$contId = $contId[0];
- $this->clickLink("_qf_Contribution_upload", "xpath=//div[@class='view-content']//table[@class='selector row-highlight']/tbody/tr[1]/td[8]/span/a[text()='Edit']", FALSE);
+ $this->clickLink("_qf_Contribution_upload", "xpath=//table[@class='selector row-highlight']/tbody/tr[1]/td[8]/span/a[text()='Edit']", FALSE);
$this->waitForText('crm-notification-container', "The contribution record has been saved.");
//Assertions