$this->clickLink("_qf_Search_refresh", "xpath=//table[@class='selector row-highlight']/tbody/tr[1]/td[10]/span//a[text()='View']", FALSE);
$this->clickLink("xpath=//table[@class='selector row-highlight']/tbody/tr[1]/td[10]/span//a[text()='View']", "_qf_ContributionView_cancel-bottom", FALSE);
//View Contribution Record
- $this->verifyText("xpath=id('ContributionView')/div[2]/table[1]/tbody/tr[11]/td[2]", preg_quote($campaignTitle));
+ $this->assertElementContainsText("xpath=//table[@class='crm-info-panel']/tbody/tr[11]/td[2]", $campaignTitle);
}
}
$this->select("billing_state_province_id-5", "value=1004");
$this->type("billing_postal_code-5", "94129");
$this->clickLink("_qf_Main_upload-bottom", "_qf_Confirm_next-bottom");
-
- $this->waitForElementPresent("xpath=//div[@class='crm-section no-label billing_name-section']");
- $this->assertElementContainsText("xpath=//div[@class='crm-section no-label billing_name-section']", $firstName . "billing");
- $this->assertElementContainsText("xpath=//div[@class='crm-section no-label billing_name-section']", $lastName . "billing");
+ $this->waitForElementPresent("xpath=//div[@class='crm-group billing_name_address-group']//div[@class='crm-section no-label billing_name-section']");
+ $this->assertElementContainsText("xpath=//div[@class='crm-group billing_name_address-group']//div[@class='crm-section no-label billing_name-section']", $firstName . "billing");
+ $this->assertElementContainsText("xpath=//div[@class='crm-group billing_name_address-group']//div[@class='crm-section no-label billing_name-section']", $lastName . "billing");
$this->click("_qf_Confirm_next-bottom");
$this->waitForPageToLoad($this->getTimeoutMsec());
- $this->waitForElementPresent("xpath=//div[@class='crm-section no-label billing_name-section']");
- $this->assertElementContainsText("xpath=//div[@class='crm-section no-label billing_name-section']", $firstName . "billing");
- $this->assertElementContainsText("xpath=//div[@class='crm-section no-label billing_name-section']", $lastName . "billing");
+ $this->waitForElementPresent("xpath=//div[@class='crm-group billing_name_address-group']//div[@class='crm-section no-label billing_name-section']");
+ $this->assertElementContainsText("xpath=//div[@class='crm-group billing_name_address-group']//div[@class='crm-section no-label billing_name-section']", $firstName . "billing");
+ $this->assertElementContainsText("xpath=//div[@class='crm-group billing_name_address-group']//div[@class='crm-section no-label billing_name-section']", $lastName . "billing");
//login to check contribution
$this->type("sort_name", "$lastName $firstName");
$this->multiselect2('contribution_product_id', array('Coffee Mug'));
$this->click("_qf_Search_refresh");
+ $this->waitForAjaxContent();
$this->waitForElementPresent("xpath=//table[@class='selector row-highlight']/tbody//tr/td[10]/span//a[text()='View']");
$this->click("xpath=//table[@class='selector row-highlight']/tbody//tr/td[2]/a[text()='{$lastName}, {$firstName}']/../../td[10]/span//a[text()='View']");
$this->waitForElementPresent("xpath=//button//span[contains(text(),'Done')]");
$this->openCiviPage("contribute/search", "reset=1", "contribution_date_low");
$this->type("sort_name", "Individual");
+ $this->waitForElementPresent("contribution_status_id");
$this->multiselect2('contribution_status_id', array("Pending"));
$this->clickLink("_qf_Search_refresh");
$this->waitForAjaxContent();
$this->select('task', "label=Update pending contribution status");
$this->waitForAjaxContent();
+ $this->waitForElementPresent("contribution_status_id");
$this->select('contribution_status_id', 'label=Completed');
$this->waitForAjaxContent();
$this->click('_qf_Status_next');
$this->waitForElementPresent("contribution_date_low");
$this->type("sort_name", "Individual");
+ $this->waitForElementPresent("contribution_status_id");
$this->multiselect2('contribution_status_id', array("Completed"));
$this->click("_qf_Search_refresh");
$this->select("financial_type_id", "value=1");
//Contribution status
+ $this->waitForElementPresent("contribution_status_id");
$this->select("contribution_status_id", "label=Pending");
// total amount