$this->click('link=Add Membership Type');
$this->waitForElementPresent('_qf_MembershipType_cancel-bottom');
$this->click('link=Add Membership Type');
$this->waitForElementPresent('_qf_MembershipType_cancel-bottom');
- $this->open($this->sboxPath . "civicrm/contribute/transact?reset=1&id=" . $pageId);
- $this->waitForElementPresent('_qf_Main_upload-bottom');
+ $this->openCiviPage("contribute/transact", "reset=1&id=$pageId", '_qf_Main_upload-bottom');
$this->click("xpath=//div[@class='crm-section membership_amount-section']/div[2]//span/label/span[2][contains(text(),'$membershipTypeTitle')]");
$firstName = 'Eia' . substr(sha1(rand()), 0, 4);
$lastName = 'Ande' . substr(sha1(rand()), 0, 4);
$this->click("xpath=//div[@class='crm-section membership_amount-section']/div[2]//span/label/span[2][contains(text(),'$membershipTypeTitle')]");
$firstName = 'Eia' . substr(sha1(rand()), 0, 4);
$lastName = 'Ande' . substr(sha1(rand()), 0, 4);
$this->click("xpath=//div[@class='crm-section membership_amount-section']/div[2]//span/label/span[2][contains(text(),'$membershipTypeTitle')]");
$this->type("email-5", $email);
$this->click("xpath=//div[@class='crm-section membership_amount-section']/div[2]//span/label/span[2][contains(text(),'$membershipTypeTitle')]");
$this->type("email-5", $email);