// select price set items
$this->select('price_set_id', "label=$setTitle");
- $this->type("xpath=//input[@class='four crm-form-text required']", "2");
+ $this->type("xpath=//input[@class='four crm-form-text required']", "1");
$this->click("xpath=//input[@class='crm-form-radio']");
$this->click("xpath=//input[@class='crm-form-checkbox']");
// select payment instrument type = Check and enter chk number
$this->webtestFillAutocomplete("{$lastNameSoft}, {$firstNameSoft}", 'soft_credit_contact_id_1');
- $this->type('soft_credit_amount_1', "1");
+ $this->type('soft_credit_amount_1', "65");
//Additional Detail section
$this->click('AdditionalDetail');
$this->waitForElementPresent('thankyou_date');
$this->type("sort_name", "$lastName, $firstName");
$this->click("_qf_Search_refresh");
- $this->waitForElementPresent("xpath=//div[@class='crm-content-block']//div[@id='contributionSearch']");
+ $this->waitForElementPresent("xpath=//*[@id='Search']//div[@id='contributionSearch']");
$contriIDOff = explode('&', $this->getAttribute("xpath=//div[@id='contributionSearch']//table[@class='selector row-highlight']/tbody/tr[1]/td[11]/span/a[1]@href"));
if (!empty($contriIDOff)) {
$contriIDOff = substr($contriIDOff[1], (strrpos($contriIDOff[1], '=') + 1));
$this->clickLink("xpath=//tr[@id='rowid{$contriIDOff}']/td[11]/span/a[2]", "total_amount", FALSE);
$this->type("total_amount", "90");
- $this->clickLink('_qf_Contribution_upload');
+ $this->clickLink('_qf_Contribution_upload','',FALSE);
// Is status message correct?
$this->waitForText('crm-notification-container', "The contribution record has been saved.");
$this->openCiviPage('report/instance/1', 'reset=1');
//check if the reserved report field is frozen
- $this->assertTrue($this->isElementPresent("xpath=//div[@id='instanceForm']//table[3]/tbody//tr/td[2]/tt[text()='[ ]']"));
+ $this->assertTrue($this->isElementPresent("xpath=//div[@id='instanceForm']//table[3]/tbody//tr/td[2]/span/tt[text()='[ ]']"));
// let's give full CiviReport permissions.
$permissions = array(