$this->click('is_separate_payment');
}
}
- $this->click('_qf_MembershipBlock_next');
- $this->waitForPageToLoad($this->getTimeoutMsec());
- $this->waitForElementPresent('_qf_MembershipBlock_next-bottom');
+ $this->clickLink('_qf_MembershipBlock_next', '_qf_MembershipBlock_next-bottom');
$text = "'MembershipBlock' information has been saved.";
$this->assertTrue($this->isTextPresent($text), 'Missing text: ' . $text);
}
}
// Clicking save.
- $this->click('_qf_Edit_upload-bottom');
- $this->waitForPageToLoad($this->getTimeoutMsec());
+ $this->clickLink('_qf_Edit_upload-bottom');
// Is status message correct?
$this->assertElementContainsText('crm-notification-container', "$groupName");
}
$this->waitForElementPresent("xpath=//table/tbody//tr/td[1][text()='{$editfinancialAccount}']/../td[9]/span/a[text()='Edit']");
- $this->click("xpath=//table/tbody//tr/td[1][text()='{$editfinancialAccount}']/../td[9]/span/a[text()='Edit']");
- $this->waitForPageToLoad($this->getTimeoutMsec());
-
- $this->waitForElementPresent('_qf_FinancialAccount_cancel-botttom');
+ $this->clickLink("xpath=//table/tbody//tr/td[1][text()='{$editfinancialAccount}']/../td[9]/span/a[text()='Edit']", '_qf_FinancialAccount_cancel-botttom');
// Change Financial Account Name
if ($financialAccountTitle) {
//Opening Edit Page of the created Campaign
$this->waitForElementPresent("//div[@id='campaignList']/div[@class='dataTables_wrapper']/table/tbody//tr/td[text()='{$campaignTitle}']/../td[13]/span/a[text()='Edit']");
- $this->click("//div[@id='campaignList']/div[@class='dataTables_wrapper']/table/tbody//tr/td[text()='{$campaignTitle}']/../td[13]/span/a[text()='Edit']");
- $this->waitForPageToLoad($this->getTimeoutMsec());
-
- //Checking for Proper description present
- $this->waitForElementPresent("//textarea[@id='description']");
+ $this->clickLink("//div[@id='campaignList']/div[@class='dataTables_wrapper']/table/tbody//tr/td[text()='{$campaignTitle}']/../td[13]/span/a[text()='Edit']", "//textarea[@id='description']");
$fetchedVaue = $this->getValue('description');
$this->assertEquals($campaignDescription, $fetchedVaue);
}
$this->select("billing_country_id-5", "value=1228");
$this->select("billing_state_province_id-5", "value=1004");
$this->type("billing_postal_code-5", "94129");
- $this->click("_qf_Main_upload-bottom");
-
- $this->waitForPageToLoad($this->getTimeoutMsec());
- $this->waitForElementPresent("_qf_Confirm_next-bottom");
+ $this->clickLink("_qf_Main_upload-bottom", "_qf_Confirm_next-bottom");
$this->clickLink("_qf_Confirm_next-bottom", NULL);
// verify event input on info page
// start at Manage Events listing
$this->openCiviPage("event/manage", "reset=1");
- $this->click("link=$eventTitle");
-
- $this->waitForPageToLoad($this->getTimeoutMsec());
- // Look for Register button
- $this->waitForElementPresent("link=Register Now");
+ $this->clickLink("link=$eventTitle", "link=Register Now");
// Check for correct event info strings
$this->assertStringsPresent($eventInfoStrings);
$this->click("xpath=id('mark_x_$id[1]')");
$this->waitForElementPresent("Go");
- $this->click("Go");
- $this->waitForPageToLoad($this->getTimeoutMsec());
-
- $this->waitForElementPresent("_qf_Release_done-bottom");
- $this->click("_qf_Release_done-bottom");
- $this->waitForPageToLoad($this->getTimeoutMsec());
- // wait for Access Keys div to appear at bottom of page - since this page may take a while
- $this->waitForElementPresent('access');
+ $this->clickLink("Go", "_qf_Release_done-bottom");
+ $this->clickLink("_qf_Release_done-bottom", 'access');
$this->assertElementContainsText("crm-notification-container", "released");
// check whether contact is available for reserving again
$this->select('visibility', "value=Public Pages and Listings");
$this->check('is_searchable');
$this->check('in_selector');
- $this->click('_qf_Field_next_new-bottom');
- $this->waitForPageToLoad($this->getTimeoutMsec());
- $this->waitForElementPresent('_qf_Field_cancel-bottom');
+ $this->clickLink('_qf_Field_next_new-bottom', '_qf_Field_cancel-bottom');
// Custom Data Fields
$this->select('field_name[0]', "value=Contact");
$this->click("Go");
$this->waitForElementPresent('_qf_Reserve_done_reserve-bottom');
- $this->click('_qf_Reserve_done_reserve-bottom');
- $this->waitForPageToLoad($this->getTimeoutMsec());
- // wait for Access Keys div to appear at bottom of page - since this page may take a while
- $this->waitForElementPresent('access');
+ $this->clickLink('_qf_Reserve_done_reserve-bottom', 'access');
$this->assertElementContainsText("crm-notification-container", "2");
$this->openCiviPage("report/survey/detail", "reset=1", '_qf_SurveyDetails_submit');
$today = date('F jS, Y', strtotime('now'));
// echo 'Today is ' . $today;
$this->type('duration', "20");
- $this->click('_qf_Case_upload-bottom');
-
- // We should be at manage case screen
- $this->waitForPageToLoad($this->getTimeoutMsec());
- $this->waitForElementPresent('_qf_CaseView_cancel-bottom');
+ $this->clickLink('_qf_Case_upload-bottom', '_qf_CaseView_cancel-bottom');
// Is status message correct?
$this->assertElementContainsText('crm-notification-container', "Case opened successfully.", "Save successful status message didn't show up after saving!");
$this->waitForElementPresent("_qf_Edit_next");
$this->type("first_name", $testUserFirstName);
$this->type("last_name", $testUserLastName);
- $this->click("_qf_Edit_next");
- $this->waitForPageToLoad($this->getTimeoutMsec());
- $this->waitForElementPresent("profilewrap4");
+ $this->clickLink("_qf_Edit_next", "profilewrap4");
// Is status message correct?
$this->assertElementContainsText('crm-container', "Thank you. Your information has been saved.", "Save successful status message didn't show up after saving profile to update testUserName!");
$this->openCiviPage('case/add', 'reset=1&action=add&atype=13&context=standalone', '_qf_Case_upload-bottom');
// Try submitting the form without creating or selecting a contact (test for CRM-7971)
- $this->click("_qf_Case_upload-bottom");
- $this->waitForPageToLoad($this->getTimeoutMsec());
- $this->waitForElementPresent("css=span.crm-error");
+ $this->clickLink("_qf_Case_upload-bottom", "css=span.crm-error");
$this->assertElementContainsText('Case', "Please select a contact or create new contact", "Expected form rule error for submit without selecting contact did not show up after clicking Save.");
// Adding contact with randomized first name (so we can then select that contact when creating case)
$today = date('F jS, Y', strtotime('now'));
// echo 'Today is ' . $today;
$this->type("duration", "20");
- $this->click("_qf_Case_upload-bottom");
-
- // We should be at manage case screen
- $this->waitForPageToLoad($this->getTimeoutMsec());
- $this->waitForElementPresent("_qf_CaseView_cancel-bottom");
+ $this->clickLink("_qf_Case_upload-bottom", "_qf_CaseView_cancel-bottom");
// Is status message correct?
$this->assertElementContainsText('crm-notification-container', "Case opened successfully.", "Save successful status message didn't show up after saving!");
$testUserLastName = "Testuserlast";
$this->type("first_name", $testUserFirstName);
$this->type("last_name", $testUserLastName);
- $this->click("_qf_Edit_next");
- $this->waitForPageToLoad($this->getTimeoutMsec());
- $this->waitForElementPresent("profilewrap4");
+ $this->clickLink("_qf_Edit_next", "profilewrap4");
$this->openCiviPage('case/add', 'reset=1&action=add&atype=13&context=standalone', '_qf_Case_upload-bottom');
// Try submitting the form without creating or selecting a contact (test for CRM-7971)
- $this->click("_qf_Case_upload-bottom");
- $this->waitForPageToLoad($this->getTimeoutMsec());
- $this->waitForElementPresent("css=span.crm-error");
+ $this->clickLink("_qf_Case_upload-bottom", "css=span.crm-error");
// Adding contact with randomized first name (so we can then select that contact when creating case)
// We're using pop-up New Contact dialog
$this->type("{$cusId_1}", $custFname);
$this->type("{$cusId_2}", $custMname);
$this->type("{$cusId_3}", $custLname);
- $this->click("_qf_Case_upload-bottom");
-
- // We should be at manage case screen
- $this->waitForPageToLoad($this->getTimeoutMsec());
- $this->waitForElementPresent("_qf_CaseView_cancel-bottom");
+ $this->clickLink("_qf_Case_upload-bottom", "_qf_CaseView_cancel-bottom");
// Is status message correct?
$this->assertTextPresent("Case opened successfully.", "Save successful status message didn't show up after saving!");
// The header text of the table changes too
$this->assertElementContainsText('crm-container', "Summary of Case Involvement");
- $this->click("name=allupcoming value=1");
- $this->waitForPageToLoad($this->getTimeoutMsec());
- $this->waitForElementPresent("css=a.button");
+ $this->clickLink("name=allupcoming value=1", "css=a.button");
$this->assertTrue($this->isChecked("name=allupcoming value=1"), 'Selection of All Cases failed.');
$this->assertElementContainsText('crm-container', "Summary of All Cases");
$this->openCiviPage('case', 'reset=1', 'css=a.button');
// Click on find my cases and check if right radio is checked
- $this->click("name=find_my_cases");
- $this->waitForPageToLoad($this->getTimeoutMsec());
- $this->waitForElementPresent("css=input.form-submit");
+ $this->clickLink("name=find_my_cases", "css=input.form-submit");
$this->assertTrue($this->isChecked("name=case_owner value=2"), 'Find my cases button not properly setting search form value to my cases.');
// Go back to dashboard
$this->openCivipage('case', 'reset=1', 'css=a.button');
// Click on a drilldown cell and check if right radio is checked
- $this->click("css=a.crm-case-summary-drilldown");
- $this->waitForPageToLoad($this->getTimeoutMsec());
- $this->waitForElementPresent("css=input.form-submit");
+ $this->clickLink("css=a.crm-case-summary-drilldown", "css=input.form-submit");
$this->assertTrue($this->isChecked("name=case_owner value=1"), 'Drilldown on dashboard summary cells not properly setting search form value to all cases.');
// Go back to dashboard and reset to my cases
$this->openCiviPage('case', 'reset=1', 'css=a.button');
- $this->click("name=allupcoming value=0");
- $this->waitForPageToLoad($this->getTimeoutMsec());
- $this->waitForElementPresent("css=a.button");
+ $this->clickLink("name=allupcoming value=0", "css=a.button");
// Click on a drilldown cell and check if right radio is checked
- $this->click("css=a.crm-case-summary-drilldown");
- $this->waitForPageToLoad($this->getTimeoutMsec());
- $this->waitForElementPresent("css=input.form-submit");
+ $this->clickLink("css=a.crm-case-summary-drilldown", "css=input.form-submit");
$this->assertTrue($this->isChecked("name=case_owner value=2"), 'Drilldown on dashboard summary cells not properly setting search form value to my cases.');
}
}
$this->openCiviPage('contact/search', 'reset=1', '_qf_Basic_refresh');
$this->type("sort_name", $sortName);
$this->select("contact_type", "value=Individual");
- $this->click("_qf_Basic_refresh");
- $this->waitForPageToLoad($this->getTimeoutMsec());
- $this->waitForElementPresent("xpath=//form[@id='Basic']/div[3]/div/div[2]/table/tbody/tr/");
+ $this->clickLink("_qf_Basic_refresh", "xpath=//form[@id='Basic']/div[3]/div/div[2]/table/tbody/tr/");
// click through to the Relationship view screen
$this->click("xpath=//form[@id='Basic']/div[3]/div/div[2]/table/tbody/tr/td[11]/span/a[text()='View']");
$this->openCiviPage('contact/search', 'reset=1', '_qf_Basic_refresh');
$this->type("sort_name", $ContactName);
$this->select("contact_type", "value=Individual");
- $this->click("_qf_Basic_refresh");
- $this->waitForPageToLoad($this->getTimeoutMsec());
- $this->waitForElementPresent("xpath=//form[@id='Basic']/div[3]/div/div[2]/table/tbody/tr/");
+ $this->clickLink("_qf_Basic_refresh", "xpath=//form[@id='Basic']/div[3]/div/div[2]/table/tbody/tr/");
// click through to the Contribution view screen
$this->click("xpath=//form[@id='Basic']/div[3]/div/div[2]/table/tbody/tr/td[11]/span/a[text()='View']");
$this->click('demographics');
$this->waitForElementPresent('CIVICRM_QFID_1_is_deceased');
$this->click('CIVICRM_QFID_1_is_deceased');
- $this->click('_qf_Advanced_refresh');
- $this->waitForPageToLoad($this->getTimeoutMsec());
-
- // Remove contacts from group
- $this->waitForElementPresent('Go');
+ $this->clickLink('_qf_Advanced_refresh', 'Go');
$this->assertElementContainsText('search-status', '2 Contacts');
$this->click("toggleSelect");
$this->waitForTextPresent('2 Selected records only');
$this->type('organization_name', $orgName);
$this->type('street_address-1', 'Test Org Street');
$this->type('city-1', 'Test Org City');
- $this->click('_qf_Edit_next');
- $this->waitForPageToLoad($this->getTimeoutMsec());
- $this->waitForElementPresent('selected_shared_address-2');
+ $this->clickLink('_qf_Edit_next', 'selected_shared_address-2');
$this->waitForTextPresent('Test Org Street');
$this->inlineEdit('address-block-2', array(
'address_2_location_type_id' => array('Work'),
$this->click("xpath=//a[text()='$firstName $lastName']/../../td[4]/a[text()='merge']");
$this->waitForElementPresent('_qf_Merge_cancel-bottom');
- $this->click("css=div.crm-contact-merge-form-block div.action-link a");
- $this->waitForPageToLoad($this->getTimeoutMsec());
- $this->waitForElementPresent('_qf_Merge_cancel-bottom');
+ $this->clickLink("css=div.crm-contact-merge-form-block div.action-link a", '_qf_Merge_cancel-bottom');
// Move the activities, groups, etc to the main contact and merge using Merge and Goto Next Pair
$this->check('move_prefix_id');
$this->check('move_rel_table_activities');
$this->check('move_rel_table_groups');
$this->check('move_rel_table_tags');
- $this->click('_qf_Merge_next-bottom');
- $this->waitForPageToLoad($this->getTimeoutMsec());
- $this->waitForElementPresent('_qf_Merge_cancel-bottom');
+ $this->clickLink('_qf_Merge_next-bottom', '_qf_Merge_cancel-bottom');
$this->assertTrue($this->isTextPresent('Contacts Merged'), "Contacts Merged text was not found after merge.");
// Check that we are viewing the next Merge Pair (our 2nd contact, since the merge list is ordered by contact_id)
$this->waitForElementPresent("xpath=//a[text()='$firstName $lastName']");
$this->click("xpath=//a[text()='$firstName $lastName']/../../td[4]/a[text()='merge']");
$this->waitForElementPresent('_qf_Merge_cancel-bottom');
- $this->click("css=div.crm-contact-merge-form-block div.action-link a");
- $this->waitForPageToLoad($this->getTimeoutMsec());
- $this->waitForElementPresent("xpath=//form[@id='Merge']/div[2]/table/tbody/tr[2]/td[4]/span[text()='(overwrite)']");
+ $this->clickLink("css=div.crm-contact-merge-form-block div.action-link a", "xpath=//form[@id='Merge']/div[2]/table/tbody/tr[2]/td[4]/span[text()='(overwrite)']");
$this->waitForElementPresent("xpath=//form[@id='Merge']/div[2]/table/tbody/tr[3]/td[4]/span[text()='(add)']");
$this->waitForElementPresent('_qf_Merge_cancel-bottom');
$this->waitForElementPresent("xpath=//table[@class='pagerDisplay']/tbody//tr/td[1]/a[text()='$firstName1 $lastName1']/../../td[2]/a[text()='$firstName1 $lastName1']");
$this->click("xpath=//table[@class='pagerDisplay']/tbody//tr/td[1]/a[text()='$firstName1 $lastName1']/../../td[2]/a[text()='$firstName1 $lastName1']/../../td[4]/a[text()='merge']");
$this->waitForElementPresent('_qf_Merge_cancel-bottom');
- $this->click("css=div.crm-contact-merge-form-block div.action-link a");
- $this->waitForPageToLoad($this->getTimeoutMsec());
- $this->waitForElementPresent("xpath=//form[@id='Merge']/div[2]/table/tbody/tr[2]/td[4]/span[text()='(overwrite)']");
+ $this->clickLink("css=div.crm-contact-merge-form-block div.action-link a", "xpath=//form[@id='Merge']/div[2]/table/tbody/tr[2]/td[4]/span[text()='(overwrite)']");
$this->waitForElementPresent("xpath=//form[@id='Merge']/div[2]/table/tbody/tr[3]/td[4]/span[text()='(add)']");
$this->waitForElementPresent("xpath=//form[@id='Merge']/div[2]/table/tbody/tr[4]/td[4]/span[text()='(overwrite)']");
$this->select('location_email_1_locTypeId', 'value=3');
$this->waitForElementPresent("css=div.ac_results-inner li");
// Visit contact summary page.
- $this->click("css=div.ac_results-inner li");
- $this->waitForPageToLoad($this->getTimeoutMsec());
- $this->waitForElementPresent('civicrm-footer');
+ $this->clickLink("css=div.ac_results-inner li", 'civicrm-footer');
}
}
$this->webtestNewDialogContact($firstName, 'Contributor', $firstName . '@example.com');
$this->select('financial_type_id', $financialType);
$this->type('total_amount', 100 * $i);
- $this->click('_qf_Contribution_upload_new');
- $this->waitForPageToLoad($this->getTimeoutMsec());
- $this->waitForElementPresent('_qf_Contribution_upload_new');
+ $this->clickLink('_qf_Contribution_upload_new', '_qf_Contribution_upload_new');
}
$this->openCiviPage("contact/search/builder", "reset=1", "_qf_Builder_refresh");
$this->type("css=input#sort_name_navigation", 'ada');
$this->typeKeys("css=input#sort_name_navigation", 'ada');
- $this->click("_qf_Basic_refresh");
+ $this->clickLink("_qf_Basic_refresh");
- // wait for result list
- $this->waitForPageToLoad($this->getTimeoutMsec());
// make sure we're on search results page
$this->waitForElementPresent("alpha-filter");
- // wait for bottom of page to load (access is in footer)
- $this->waitForElementPresent("access");
// Is contact present in search result?
$this->assertElementContainsText('css=.crm-search-results > table.row-highlight', $sortName);
// Go for Ckeck Your Editor, Click on Send Mail
$this->click("//a[@id='crm-contact-actions-link']/span");
- $this->click('link=Send an Email');
- $this->waitForPageToLoad($this->getTimeoutMsec());
- $this->waitForElementPresent('subject');
+ $this->clickLink('link=Send an Email', 'subject');
$this->click('subject');
$subject = 'Subject_' . substr(sha1(rand()), 0, 8);
// Go for Ckeck Your Editor, Click on Send Mail
$this->click("//a[@id='crm-contact-actions-link']/span");
- $this->click('link=Send an Email');
- $this->waitForPageToLoad($this->getTimeoutMsec());
- $this->waitForElementPresent('subject');
+ $this->clickLink('link=Send an Email', 'subject');
$this->click('subject');
$subject = 'Subject_' . substr(sha1(rand()), 0, 7);
$this->type('activity_subject', $subject);
- $this->click('_qf_Search_refresh');
- $this->waitForPageToLoad($this->getTimeoutMsec());
- $this->waitForElementPresent('Search');
+ $this->clickLink('_qf_Search_refresh', 'Search');
// View your Activity
- $this->click("xpath=id('Search')/div[3]/div/div[2]/table/tbody/tr[2]/td[9]/span/a[text()='View']");
- $this->waitForPageToLoad($this->getTimeoutMsec());
- $this->waitForElementPresent('_qf_ActivityView_next-bottom');
+ $this->clickLink("xpath=id('Search')/div[3]/div/div[2]/table/tbody/tr[2]/td[9]/span/a[text()='View']", '_qf_ActivityView_next-bottom');
// Is signature correct? in Activity
$this->assertTextPresent($signature);
function testSelectedContacts() {
$this->webtestLogin();
- $this->openCiviPage('group/add', 'reset=1', "_qf_Edit_upload");
-
- // make group name
+ // make group
$groupName = 'group_' . substr(sha1(rand()), 0, 7);
-
- // fill group name
- $this->type("title", $groupName);
-
- // fill description
- $this->type("description", "New mailing group for Webtest");
-
- // enable Mailing List
- $this->click("group_type[2]");
-
- // select Visibility as Public Pages
- $this->select("visibility", "value=Public Pages");
-
- // Clicking save.
- $this->click("_qf_Edit_upload");
- $this->waitForPageToLoad($this->getTimeoutMsec());
+ $this->WebtestAddGroup($groupName);
// Use class names for menu items since li array can change based on which components are enabled
$this->click("css=ul#civicrm-menu li.crm-Search");
- $this->click("css=ul#civicrm-menu li.crm-Advanced_Search a");
+ $this->clickLink("css=ul#civicrm-menu li.crm-Advanced_Search a", "email");
- $this->waitForPageToLoad($this->getTimeoutMsec());
- $this->waitForElementPresent("email");
$this->click("_qf_Advanced_refresh");
$this->waitForPageToLoad($this->getTimeoutMsec());
-
// Click "check all" box and act on "Add to group" action
$this->click("//form[@id='Advanced']/div[3]/div/div[2]/table/thead/tr/th[1]/input");
$this->select("task", "label=Schedule/Send a Mass Mailing");
// Do an advanced search
$this->click("css=ul#civicrm-menu li.crm-Search");
- $this->click("css=ul#civicrm-menu li.crm-Advanced_Search a");
-
- $this->waitForPageToLoad($this->getTimeoutMsec());
- $this->waitForElementPresent("email");
+ $this->clickLink("css=ul#civicrm-menu li.crm-Advanced_Search a", "email");
$this->select("crmasmSelect1", "label=$smsGroupName");
- $this->click("_qf_Advanced_refresh");
- $this->waitForPageToLoad($this->getTimeoutMsec());
-
- $this->waitForElementPresent('CIVICRM_QFID_ts_all_12');
+ $this->clickLink("_qf_Advanced_refresh", 'CIVICRM_QFID_ts_all_12');
$this->click('CIVICRM_QFID_ts_all_12');
// Perform a task action
$this->select("task", "label=Send SMS to Contacts");
- $this->click("Go");
- $this->waitForPageToLoad($this->getTimeoutMsec());
-
- $this->waitForElementPresent('activity_subject');
+ $this->clickLink("Go", 'activity_subject');
$this->type('activity_subject', "Send SMS to Contacts of {$smsGroupName}");
$this->type('text_message', "Test SMS to Contacts of {$smsGroupName}");
$this->click("_qf_SMS_upload-bottom");
if ($type == "Contribution") {
$this->openCiviPage("contribute/search", "reset=1", "contribution_date_low");
$this->type("sort_name", "{$data['first_name']} {$data['last_name']}");
- $this->click("_qf_Search_refresh");
- $this->waitForPageToLoad($this->getTimeoutMsec());
-
- $this->waitForElementPresent("xpath=//div[@id='contributionSearch']//table//tbody/tr[1]/td[11]/span/a[text()='View']");
- $this->click("xpath=//div[@id='contributionSearch']//table//tbody/tr[1]/td[11]/span/a[text()='View']");
- $this->waitForPageToLoad($this->getTimeoutMsec());
- $this->waitForElementPresent("_qf_ContributionView_cancel-bottom");
+ $this->clickLink("_qf_Search_refresh", "xpath=//div[@id='contributionSearch']//table//tbody/tr[1]/td[11]/span/a[text()='View']");
+ $this->clickLink("xpath=//div[@id='contributionSearch']//table//tbody/tr[1]/td[11]/span/a[text()='View']", "_qf_ContributionView_cancel-bottom");
$expected = array(
'From' => "{$data['first_name']} {$data['last_name']}",
'Financial Type' => $data['financial_type'],
// select contact
$this->type("sort_name", "{$data['first_name']} {$data['last_name']}");
- $this->click("_qf_Search_refresh");
- $this->waitForPageToLoad($this->getTimeoutMsec());
-
- //View Membership
- $this->waitForElementPresent("xpath=//div[@id='memberSearch']//table//tbody/tr[1]/td[11]/span/a[text()='View']");
+ $this->clickLink("_qf_Search_refresh", "xpath=//div[@id='memberSearch']//table//tbody/tr[1]/td[11]/span/a[text()='View']");
$this->click("xpath=//div[@id='memberSearch']//table/tbody/tr[1]/td[11]/span/a[text()='View']");
$this->waitForElementPresent("_qf_MembershipView_cancel-bottom");
$expected = array(
function _verifyData($data, $type) {
$this->waitForElementPresent("xpath=//div[@id='crm-batch-selector_wrapper']//table//tbody/tr[1]/td[7]/span/a[text()='Enter records']");
- $this->click("xpath=//div[@id='crm-batch-selector_wrapper']//table//tbody/tr[1]/td[7]/span/a[text()='Enter records']");
- $this->waitForPageToLoad($this->getTimeoutMsec());
- $this->waitForElementPresent("_qf_Entry_upload");
+ $this->clickLink("xpath=//div[@id='crm-batch-selector_wrapper']//table//tbody/tr[1]/td[7]/span/a[text()='Enter records']", "_qf_Entry_upload");
$this->click("_qf_Entry_upload");
$this->waitForPageToLoad($this->getTimeoutMsec());
foreach ($data as $value) {
$this->type('help_pre', $setHelp);
$this->assertChecked('is_active', 'Verify that Is Active checkbox is set.');
- $this->click('_qf_Set_next-bottom');
-
- $this->waitForPageToLoad($this->getTimeoutMsec());
- $this->waitForElementPresent('_qf_Field_next-bottom');
+ $this->clickLink('_qf_Set_next-bottom', '_qf_Field_next-bottom');
}
function _testAddPriceFields(&$fields, &$validateString, $financialType, $dateSpecificFields = FALSE) {
break;
}
$this->select('financial_type_id', "label={$financialType}");
- $this->click('_qf_Field_next_new-bottom');
- $this->waitForPageToLoad($this->getTimeoutMsec());
- $this->waitForElementPresent('_qf_Field_next-bottom');
+ $this->clickLink('_qf_Field_next_new-bottom', '_qf_Field_next-bottom');
}
}
$this->openCiviPage("admin/price", "reset=1");
// Use the price set id ($sid) to pick the correct row
- $this->click("css=tr#row_{$sid} a[title='View and Edit Price Fields']");
-
- $this->waitForPageToLoad($this->getTimeoutMsec());
- // Look for Register button
- $this->waitForElementPresent('Link=Add Price Field');
+ $this->clickLink("css=tr#row_{$sid} a[title='View and Edit Price Fields']", 'Link=Add Price Field');
// Check for expected price set field strings
$this->assertStringsPresent($validateStrings);
}
$this->select('billing_country_id-5', 'value=1228');
$this->select('billing_state_province_id-5', 'value=1004');
$this->type('billing_postal_code-5', '94129');
- $this->click('_qf_Main_upload-bottom');
-
- $this->waitForPageToLoad($this->getTimeoutMsec());
- $this->waitForElementPresent('_qf_Confirm_next-bottom');
+ $this->clickLink('_qf_Main_upload-bottom', '_qf_Confirm_next-bottom');
$this->click('_qf_Confirm_next-bottom');
$this->waitForPageToLoad($this->getTimeoutMsec());
$this->openCiviPage("contribute/search", "reset=1", 'contribution_date_low');
$this->type('sort_name', "$firstName $lastName");
- $this->click('_qf_Search_refresh');
-
- $this->waitForPageToLoad($this->getTimeoutMsec());
-
- $this->waitForElementPresent("xpath=//div[@id='contributionSearch']//table//tbody/tr[1]/td[11]/span/a[text()='View']");
- $this->click("xpath=//div[@id='contributionSearch']//table//tbody/tr[1]/td[11]/span/a[text()='View']");
- $this->waitForPageToLoad($this->getTimeoutMsec());
- $this->waitForElementPresent("_qf_ContributionView_cancel-bottom");
+ $this->clickLink('_qf_Search_refresh', "xpath=//div[@id='contributionSearch']//table//tbody/tr[1]/td[11]/span/a[text()='View']");
+ $this->clickLink("xpath=//div[@id='contributionSearch']//table//tbody/tr[1]/td[11]/span/a[text()='View']", "_qf_ContributionView_cancel-bottom");
// View Contribution Record and test for expected values
$expected = array(
$this->select('billing_country_id-5', 'value=1228');
$this->select('billing_state_province_id-5', 'value=1004');
$this->type('billing_postal_code-5', '94129');
- $this->click('_qf_Main_upload-bottom');
-
- $this->waitForPageToLoad($this->getTimeoutMsec());
- $this->waitForElementPresent('_qf_Confirm_next-bottom');
+ $this->clickLink('_qf_Main_upload-bottom', '_qf_Confirm_next-bottom');
$this->click('_qf_Confirm_next-bottom');
$this->waitForPageToLoad($this->getTimeoutMsec());
$this->openCiviPage("contribute/search", "reset=1", 'contribution_date_low');
$this->type('sort_name', "$firstName $lastName");
- $this->click('_qf_Search_refresh');
-
- $this->waitForPageToLoad($this->getTimeoutMsec());
-
- $this->waitForElementPresent("xpath=//div[@id='contributionSearch']//table//tbody/tr[1]/td[11]/span/a[text()='View']");
- $this->click("xpath=//div[@id='contributionSearch']//table//tbody/tr[1]/td[11]/span/a[text()='View']");
- $this->waitForPageToLoad($this->getTimeoutMsec());
- $this->waitForElementPresent('_qf_ContributionView_cancel-bottom');
+ $this->clickLink('_qf_Search_refresh', "xpath=//div[@id='contributionSearch']//table//tbody/tr[1]/td[11]/span/a[text()='View']");
+ $this->clickLink("xpath=//div[@id='contributionSearch']//table//tbody/tr[1]/td[11]/span/a[text()='View']", '_qf_ContributionView_cancel-bottom');
// View Contribution Record and test for expected values
$expected = array(
$this->webtestFillDate('thankyou_date');
// Clicking save.
- $this->click('_qf_Contribution_upload');
- $this->waitForPageToLoad($this->getTimeoutMsec());
-
- // Is status message correct?
- $this->waitForElementPresent("xpath=//div[@id='Contributions']//table//tbody/tr[1]/td[8]/span/a[text()='View']");
+ $this->clickLink('_qf_Contribution_upload', "xpath=//div[@id='Contributions']//table//tbody/tr[1]/td[8]/span/a[text()='View']");
$this->assertTrue($this->isTextPresent('The contribution record has been saved.'), "Status message didn't show up after saving!");
//click through to the Contribution view screen
$this->webtestFillDate('fulfilled_date');
// Clicking save.
- $this->click("_qf_Contribution_upload-bottom");
- $this->waitForPageToLoad($this->getTimeoutMsec());
- $this->waitForElementPresent('civicrm-footer');
+ $this->clickLink("_qf_Contribution_upload-bottom", 'civicrm-footer');
// Is status message correct?
$this->assertElementContainsText('crm-notification-container', "The contribution record has been saved");
$this->type('first_name', $firstName);
$this->type('last_name', $lastName);
- $this->click('_qf_Main_upload-bottom');
- $this->waitForPageToLoad($this->getTimeoutMsec());
- $this->waitForElementPresent('_qf_Confirm_next-bottom');
+ $this->clickLink('_qf_Main_upload-bottom', '_qf_Confirm_next-bottom');
$this->click('_qf_Confirm_next-bottom');
$this->waitForPageToLoad($this->getTimeoutMsec());
$this->type('sort_name', "$firstName $lastName");
$this->select('financial_type_id',"label=Member Dues");
- $this->click('_qf_Search_refresh');
-
- $this->waitForPageToLoad($this->getTimeoutMsec());
-
- //View Contribution for membership fee
- $this->waitForElementPresent("xpath=//div[@id='contributionSearch']//table//tbody/tr[1]/td[11]/span/a[text()='View']");
- $this->click("xpath=//div[@id='contributionSearch']//table//tbody/tr[1]/td[11]/span/a[text()='View']");
- $this->waitForPageToLoad($this->getTimeoutMsec());
- $this->waitForElementPresent('_qf_ContributionView_cancel-bottom');
+ $this->clickLink('_qf_Search_refresh', "xpath=//div[@id='contributionSearch']//table//tbody/tr[1]/td[11]/span/a[text()='View']");
+ $this->clickLink("xpath=//div[@id='contributionSearch']//table//tbody/tr[1]/td[11]/span/a[text()='View']", '_qf_ContributionView_cancel-bottom');
$expected = array(
'From' => "{$firstName} {$lastName}",
'Financial Type' => 'Member Dues',
$this->click("xpath=id('Search')/x:div[2]/x:div/x:div[1]");
$this->waitForElementPresent("financial_type_id");
$this->select('financial_type_id',"label=Donation");
- $this->click('_qf_Search_refresh');
+ $this->clickLink('_qf_Search_refresh', "xpath=//div[@id='contributionSearch']//table//tbody/tr[1]/td[11]/span/a[text()='View']");
- $this->waitForPageToLoad($this->getTimeoutMsec());
- $this->waitForElementPresent("xpath=//div[@id='contributionSearch']//table//tbody/tr[1]/td[11]/span/a[text()='View']");
-
- $this->click("xpath=//div[@id='contributionSearch']//table//tbody/tr[1]/td[11]/span/a[text()='View']");
- $this->waitForPageToLoad($this->getTimeoutMsec());
- $this->waitForElementPresent('_qf_ContributionView_cancel-bottom');
+ $this->clickLink("xpath=//div[@id='contributionSearch']//table//tbody/tr[1]/td[11]/span/a[text()='View']", '_qf_ContributionView_cancel-bottom');
$expected = array(
'From' => "{$firstName} {$lastName}",
'Financial Type' => 'Donation',
//Find Member
$this->openCiviPage("member/search", "reset=1", 'member_source');
$this->type('sort_name', "$firstName $lastName");
- $this->click('_qf_Search_refresh');
- $this->waitForPageToLoad($this->getTimeoutMsec());
-
- //visit the Member View link
- $this->waitForElementPresent("xpath=//div[@id='memberSearch']//table//tbody/tr[1]/td[11]/span/a[text()='View']");
- $this->click("xpath=//div[@id='memberSearch']//table//tbody/tr[1]/td[11]/span/a[text()='View']");
- $this->waitForPageToLoad($this->getTimeoutMsec());
- $this->waitForElementPresent('_qf_MembershipView_cancel-bottom');
+ $this->clickLink('_qf_Search_refresh', "xpath=//div[@id='memberSearch']//table//tbody/tr[1]/td[11]/span/a[text()='View']");
+ $this->clickLink("xpath=//div[@id='memberSearch']//table//tbody/tr[1]/td[11]/span/a[text()='View']", '_qf_MembershipView_cancel-bottom');
//View Membership Record
$expected = array(
$this->waitForElementPresent("_qf_Edit_next");
$this->type("first_name", $firstName);
$this->type("last_name", $lastName);
- $this->click("_qf_Edit_next");
- $this->waitForPageToLoad($this->getTimeoutMsec());
- $this->waitForElementPresent("profilewrap4");
+ $this->clickLink("_qf_Edit_next", "profilewrap4");
// Is status message correct?
$this->assertTextPresent("Thank you. Your information has been saved.", "Save successful status message didn't show up after saving profile to update testUserName!");
$this->waitForElementPresent("_qf_Edit_next");
$this->type("first_name", $firstName);
$this->type("last_name", $lastName);
- $this->click("_qf_Edit_next");
- $this->waitForPageToLoad($this->getTimeoutMsec());
- $this->waitForElementPresent("profilewrap4");
+ $this->clickLink("_qf_Edit_next", "profilewrap4");
$urlElements = $this->parseURL();
print_r($urlElements);
$this->select("onbehalf_state_province-3", "label=Alabama");
$this->waitForElementPresent("_qf_Main_upload-bottom");
- $this->click("_qf_Main_upload-bottom");
-
- $this->waitForPageToLoad($this->getTimeoutMsec());
-
- $this->waitForElementPresent("_qf_Confirm_next-bottom");
+ $this->clickLink("_qf_Main_upload-bottom", "_qf_Confirm_next-bottom");
$this->click("_qf_Confirm_next-bottom");
$this->waitForPageToLoad($this->getTimeoutMsec());
$this->select("billing_country_id-5", "value=1228");
$this->select("billing_state_province_id-5", "value=1004");
$this->type("billing_postal_code-5", "94129");
- $this->click("_qf_Main_upload-bottom");
-
- $this->waitForPageToLoad($this->getTimeoutMsec());
- $this->waitForElementPresent("_qf_Confirm_next-bottom");
+ $this->clickLink("_qf_Main_upload-bottom", "_qf_Confirm_next-bottom");
$this->click("_qf_Confirm_next-bottom");
$this->waitForPageToLoad($this->getTimeoutMsec());
//Find Contribution
$this->openCiviPage("contribute/search", "reset=1");
$this->type("sort_name", $orgName);
- $this->click("_qf_Search_refresh");
-
- $this->waitForPageToLoad($this->getTimeoutMsec());
-
- $this->waitForElementPresent("xpath=//div[@id='contributionSearch']//table//tbody/tr[1]/td[11]/span/a[text()='View']");
- $this->click("xpath=//div[@id='contributionSearch']//table//tbody/tr[1]/td[11]/span/a[text()='View']");
- $this->waitForPageToLoad($this->getTimeoutMsec());
- $this->waitForElementPresent("_qf_ContributionView_cancel-bottom");
+ $this->clickLink("_qf_Search_refresh", "xpath=//div[@id='contributionSearch']//table//tbody/tr[1]/td[11]/span/a[text()='View']");
+ $this->clickLink("xpath=//div[@id='contributionSearch']//table//tbody/tr[1]/td[11]/span/a[text()='View']", "_qf_ContributionView_cancel-bottom");
// verify contrb created
$expected = array(
$this->select("billing_state_province_id-5", "value=1004");
$this->type("billing_postal_code-5", "94129");
- $this->click("_qf_Main_upload-bottom");
- $this->waitForPageToLoad($this->getTimeoutMsec());
- $this->waitForElementPresent("_qf_Confirm_next-bottom");
+ $this->clickLink("_qf_Main_upload-bottom", "_qf_Confirm_next-bottom");
$this->click("_qf_Confirm_next-bottom");
$this->waitForPageToLoad($this->getTimeoutMsec());
//Find Contribution
$this->openCiviPage("contribute/search", "reset=1");
$this->type("sort_name", $orgName1);
- $this->click("_qf_Search_refresh");
- $this->waitForPageToLoad($this->getTimeoutMsec());
- $this->waitForElementPresent("xpath=//div[@id='contributionSearch']//table//tbody/tr[1]/td[11]/span/a[text()='View']");
- $this->click("xpath=//div[@id='contributionSearch']//table//tbody/tr[1]/td[11]/span/a[text()='View']");
- $this->waitForPageToLoad($this->getTimeoutMsec());
- $this->waitForElementPresent("_qf_ContributionView_cancel-bottom");
+ $this->clickLink("_qf_Search_refresh", "xpath=//div[@id='contributionSearch']//table//tbody/tr[1]/td[11]/span/a[text()='View']");
+ $this->clickLink("xpath=//div[@id='contributionSearch']//table//tbody/tr[1]/td[11]/span/a[text()='View']", "_qf_ContributionView_cancel-bottom");
// verify contrb created
$expected = array(
$this->select('field_name[0]', 'value=Membership');
$this->select('field_name[1]', 'label=Campaign');
$this->click('field_name[1]');
- $this->click('_qf_Field_next_new-bottom');
- $this->waitForPageToLoad($this->getTimeoutMsec());
- $this->waitForElementPresent('_qf_Field_cancel-bottom');
+ $this->clickLink('_qf_Field_next_new-bottom', '_qf_Field_cancel-bottom');
$this->select('field_name[0]', 'value=Membership');
$this->select('field_name[1]', "label=$fieldTitle :: $groupTitle");
$this->select("credit_card_exp_date[M]", "value=1");
$this->select("credit_card_exp_date[Y]", "value=2020");
- $this->click("_qf_Main_upload-bottom");
- $this->waitForPageToLoad($this->getTimeoutMsec());
- $this->waitForElementPresent("_qf_Confirm_next-bottom");
+ $this->clickLink("_qf_Main_upload-bottom", "_qf_Confirm_next-bottom");
$this->click("_qf_Confirm_next-bottom");
$this->waitForPageToLoad($this->getTimeoutMsec());
//Find Membership for organization
$this->openCiviPage("member/search", "reset=1");
$this->type("sort_name", $orgName1);
- $this->click("_qf_Search_refresh");
- $this->waitForPageToLoad($this->getTimeoutMsec());
- $this->waitForElementPresent("xpath=//div[@id='memberSearch']//table//tbody/tr[1]/td[11]/span/a[text()='View']");
- $this->click("xpath=//div[@id='memberSearch']//table//tbody/tr[1]/td[11]/span/a[text()='View']");
- $this->waitForPageToLoad($this->getTimeoutMsec());
- $this->waitForElementPresent("_qf_MembershipView_cancel-bottom");
+ $this->clickLink("_qf_Search_refresh", "xpath=//div[@id='memberSearch']//table//tbody/tr[1]/td[11]/span/a[text()='View']");
+ $this->clickLink("xpath=//div[@id='memberSearch']//table//tbody/tr[1]/td[11]/span/a[text()='View']", "_qf_MembershipView_cancel-bottom");
//verify contrb created
$expected = array(
$this->waitForElementPresent("_qf_Edit_next");
$this->type("first_name", $firstName);
$this->type("last_name", $lastName);
- $this->click("_qf_Edit_next");
- $this->waitForPageToLoad($this->getTimeoutMsec());
- $this->waitForElementPresent("profilewrap4");
+ $this->clickLink("_qf_Edit_next", "profilewrap4");
$urlElements = $this->parseURL();
$cid = $urlElements['queryString']['id'];
$this->select("billing_country_id-5", "value=1228");
$this->select("billing_state_province_id-5", "value=1004");
$this->type("billing_postal_code-5", "94129");
- $this->click("_qf_Main_upload-bottom");
-
- $this->waitForPageToLoad($this->getTimeoutMsec());
- $this->waitForElementPresent("_qf_Confirm_next-bottom");
+ $this->clickLink("_qf_Main_upload-bottom", "_qf_Confirm_next-bottom");
$this->click("_qf_Confirm_next-bottom");
$this->waitForPageToLoad($this->getTimeoutMsec());
$this->select("billing_country_id-5", "value=1228");
$this->select("billing_state_province_id-5", "value=1004");
$this->type("billing_postal_code-5", "94129");
- $this->click("_qf_Main_upload-bottom");
-
- $this->waitForPageToLoad($this->getTimeoutMsec());
- $this->waitForElementPresent("_qf_Confirm_next-bottom");
+ $this->clickLink("_qf_Main_upload-bottom", "_qf_Confirm_next-bottom");
$this->click("_qf_Confirm_next-bottom");
$this->waitForPageToLoad($this->getTimeoutMsec());
$this->openCiviPage("contribute/search", "reset=1", "contribution_date_low");
$this->type("sort_name", "$firstName $lastName");
- $this->click("_qf_Search_refresh");
-
- $this->waitForPageToLoad($this->getTimeoutMsec());
-
- $this->waitForElementPresent("xpath=//div[@id='contributionSearch']//table//tbody/tr[1]/td[11]/span/a[text()='View']");
- $this->click("xpath=//div[@id='contributionSearch']//table//tbody/tr[1]/td[11]/span/a[text()='View']");
- $this->waitForPageToLoad($this->getTimeoutMsec());
- $this->waitForElementPresent("_qf_ContributionView_cancel-bottom");
+ $this->clickLink("_qf_Search_refresh", "xpath=//div[@id='contributionSearch']//table//tbody/tr[1]/td[11]/span/a[text()='View']");
+ $this->clickLink("xpath=//div[@id='contributionSearch']//table//tbody/tr[1]/td[11]/span/a[text()='View']", "_qf_ContributionView_cancel-bottom");
//View Contribution Record and verify data
$expected = array(
$this->select("billing_country_id-5", "value=1228");
$this->select("billing_state_province_id-5", "value=1004");
$this->type("billing_postal_code-5", "94129");
- $this->click("_qf_Main_upload-bottom");
-
- $this->waitForPageToLoad($this->getTimeoutMsec());
-
- $this->waitForElementPresent("_qf_Confirm_next-bottom");
+ $this->clickLink("_qf_Main_upload-bottom", "_qf_Confirm_next-bottom");
$this->click("_qf_Confirm_next-bottom");
$this->waitForPageToLoad($this->getTimeoutMsec());
$xpath = "xpath=//label[text() = '{$payLaterText}']/preceding-sibling::input[1]";
$this->click($xpath);
- $this->click("_qf_Main_upload-bottom");
- $this->waitForPageToLoad($this->getTimeoutMsec());
-
- $this->waitForElementPresent("_qf_Confirm_next-bottom");
+ $this->clickLink("_qf_Main_upload-bottom", "_qf_Confirm_next-bottom");
$payLaterInstructionsText = "Pay later instructions $hash";
$this->assertTrue($this->isTextPresent($payLaterInstructionsText));
$this->type('sort_name', "$firstName $lastName");
$this->check('contribution_test');
- $this->click('_qf_Search_refresh');
-
- $this->waitForPageToLoad($this->getTimeoutMsec());
-
- $this->waitForElementPresent("xpath=//div[@id='contributionSearch']//table//tbody/tr[1]/td[11]/span/a[text()='View']");
- $this->click("xpath=//div[@id='contributionSearch']//table//tbody/tr[1]/td[11]/span/a[text()='View']");
- $this->waitForPageToLoad($this->getTimeoutMsec());
- $this->waitForElementPresent('_qf_ContributionView_cancel-bottom');
+ $this->clickLink('_qf_Search_refresh', "xpath=//div[@id='contributionSearch']//table//tbody/tr[1]/td[11]/span/a[text()='View']");
+ $this->clickLink("xpath=//div[@id='contributionSearch']//table//tbody/tr[1]/td[11]/span/a[text()='View']", '_qf_ContributionView_cancel-bottom');
$expected = array(
'From' => "{$firstName} {$lastName}",
'Financial Type' => 'Donation',
$this->webtestAddCreditCardDetails();
$this->webtestAddBillingDetails($firstName, $middleName, $lastName);
- $this->click("_qf_Main_upload-bottom");
- $this->waitForPageToLoad($this->getTimeoutMsec());
- $this->waitForElementPresent("_qf_Confirm_next-bottom");
+ $this->clickLink("_qf_Main_upload-bottom", "_qf_Confirm_next-bottom");
$this->click("_qf_Confirm_next-bottom");
$this->waitForElementPresent("thankyou_footer");
$this->webtestAddCreditCardDetails();
$this->webtestAddBillingDetails($donorFirstName, $middleName, $donorLastName);
- $this->click("_qf_Main_upload-bottom");
- $this->waitForPageToLoad($this->getTimeoutMsec());
- $this->waitForElementPresent("_qf_Confirm_next-bottom");
+ $this->clickLink("_qf_Main_upload-bottom", "_qf_Confirm_next-bottom");
$this->click("_qf_Confirm_next-bottom");
$this->waitForElementPresent("thankyou_footer");
$this->select('contribution_pcp_made_through_id', "label={$pcpTitle}");
- $this->click("_qf_Search_refresh");
-
- $this->waitForPageToLoad($this->getTimeoutMsec());
-
- $this->waitForElementPresent("xpath=//div[@id='contributionSearch']//table//tbody/tr[1]/td[11]/span/a[text()='View']");
- $this->click("xpath=//div[@id='contributionSearch']//table//tbody/tr[1]/td[11]/span/a[text()='View']");
- $this->waitForPageToLoad($this->getTimeoutMsec());
- $this->waitForElementPresent("_qf_ContributionView_cancel-bottom");
+ $this->clickLink("_qf_Search_refresh", "xpath=//div[@id='contributionSearch']//table//tbody/tr[1]/td[11]/span/a[text()='View']");
+ $this->clickLink("xpath=//div[@id='contributionSearch']//table//tbody/tr[1]/td[11]/span/a[text()='View']", "_qf_ContributionView_cancel-bottom");
// View Contribution Record and test for expected values
$expected = array(
$this->select("country-1", "value=1228");
$this->select("state_province-1", "value=1001");
- $this->click("_qf_Main_upload-bottom");
-
- $this->waitForPageToLoad($this->getTimeoutMsec());
- $this->waitForElementPresent("_qf_Confirm_next-bottom");
+ $this->clickLink("_qf_Main_upload-bottom", "_qf_Confirm_next-bottom");
$this->click("_qf_Confirm_next-bottom");
$this->waitForPageToLoad($this->getTimeoutMsec());
$this->openCiviPage("contribute/search", "reset=1", "contribution_date_low");
$this->type("sort_name", "$lastName, $firstName");
- $this->click("_qf_Search_refresh");
-
- $this->waitForPageToLoad($this->getTimeoutMsec());
-
- $this->waitForElementPresent("xpath=//div[@id='contributionSearch']//table//tbody/tr[2]/td[11]/span/a[text()='View']");
- $this->click("xpath=//div[@id='contributionSearch']//table//tbody/tr[2]/td[11]/span/a[text()='View']");
- $this->waitForPageToLoad($this->getTimeoutMsec());
- $this->waitForElementPresent("_qf_ContributionView_cancel-bottom");
+ $this->clickLink("_qf_Search_refresh", "xpath=//div[@id='contributionSearch']//table//tbody/tr[2]/td[11]/span/a[text()='View']");
+ $this->clickLink("xpath=//div[@id='contributionSearch']//table//tbody/tr[2]/td[11]/span/a[text()='View']", "_qf_ContributionView_cancel-bottom");
// View Contribution Record and test for expected values
$expected = array(
'From' => "{$firstName} {$lastName}",
}
// submit contribution
- $this->click("_qf_Main_upload-bottom");
- $this->waitForPageToLoad($this->getTimeoutMsec());
- $this->waitForElementPresent("_qf_Confirm_next-bottom");
+ $this->clickLink("_qf_Main_upload-bottom", "_qf_Confirm_next-bottom");
// confirm contribution
$this->click("_qf_Confirm_next-bottom");
$this->type("discount_name_1", $discount1);
$this->webtestFillDate("discount_start_date_1", "-3 week");
$this->webtestFillDate("discount_end_date_1", "-2 week");
- $this->click("_qf_Fee_submit");
- $this->waitForPageToLoad($this->getTimeoutMsec());
- $this->waitForElementPresent("discounted_value_1_1");
+ $this->clickLink("_qf_Fee_submit", "discounted_value_1_1");
$this->type("discounted_value_1_1","225.00");
$this->type("discounted_value_2_1","300.00");
$this->type("discount_name_2", $discount2);
$this->webtestFillDate("discount_start_date_2", "-1 week");
$this->webtestFillDate("discount_end_date_2", "+1 week");
- $this->click("_qf_Fee_submit");
- $this->waitForPageToLoad($this->getTimeoutMsec());
- $this->waitForElementPresent("discounted_value_2_1");
+ $this->clickLink("_qf_Fee_submit", "discounted_value_2_1");
$this->type("discounted_value_1_2","225.00");
$this->type("discounted_value_2_2","300.00");
}
$this->type('help_pre', $setHelp);
$this->assertChecked('is_active', 'Verify that Is Active checkbox is set.');
- $this->click('_qf_Set_next-bottom');
-
- $this->waitForPageToLoad($this->getTimeoutMsec());
- $this->waitForElementPresent('_qf_Field_next-bottom');
+ $this->clickLink('_qf_Set_next-bottom', '_qf_Field_next-bottom');
}
function _testAddPriceFields(&$fields, &$validateStrings, $dateSpecificFields = FALSE) {
default:
break;
}
- $this->click('_qf_Field_next_new-bottom');
- $this->waitForPageToLoad($this->getTimeoutMsec());
- $this->waitForElementPresent('_qf_Field_next-bottom');
+ $this->clickLink('_qf_Field_next_new-bottom', '_qf_Field_next-bottom');
}
}
$this->openCiviPage('admin/price', 'reset=1');
// Use the price set id ($sid) to pick the correct row
- $this->click("css=tr#row_{$sid} a[title='Preview Price Set']");
-
- $this->waitForPageToLoad($this->getTimeoutMsec());
- // Look for Register button
- $this->waitForElementPresent('_qf_Preview_cancel-bottom');
+ $this->clickLink("css=tr#row_{$sid} a[title='Preview Price Set']", '_qf_Preview_cancel-bottom');
// Check for expected price set field strings
$this->assertStringsPresent($validateStrings);
$this->select('billing_state_province_id-5', 'value=1004');
$this->type('billing_postal_code-5', '94129');
- $this->click('_qf_Register_upload-bottom');
- $this->waitForPageToLoad($this->getTimeoutMsec());
- $this->waitForElementPresent('_qf_Confirm_next-bottom');
+ $this->clickLink('_qf_Register_upload-bottom', '_qf_Confirm_next-bottom');
$confirmStrings = array('Event Fee(s)', 'Billing Name and Address', 'Credit Card Information');
$this->assertStringsPresent($confirmStrings);
$this->click('_qf_Confirm_next-bottom');
$this->openCiviPage('event/search', 'reset=1', '_qf_Search_refresh');
$this->type('sort_name', "$email");
- $this->click('_qf_Search_refresh');
-
- $this->waitForPageToLoad($this->getTimeoutMsec());
-
- $this->waitForElementPresent("xpath=id('participantSearch')/table/tbody/tr/td[11]/span/a[text()='View']");
+ $this->clickLink('_qf_Search_refresh', "xpath=id('participantSearch')/table/tbody/tr/td[11]/span/a[text()='View']");
$this->click("xpath=id('participantSearch')/table/tbody/tr/td[11]/span/a[text()='View']");
$this->waitForElementPresent('_qf_ParticipantView_cancel-bottom');
$this->type("max_participants", "6");
$this->click("is_public");
- $this->click("_qf_EventInfo_upload-bottom");
-
- // Wait for Location tab form to load
- $this->waitForPageToLoad($this->getTimeoutMsec());
- $this->waitForElementPresent("_qf_Location_upload_done-bottom");
+ $this->clickLink("_qf_EventInfo_upload-bottom", "_qf_Location_upload_done-bottom");
$this->click("_qf_Location_upload_done-bottom");
// verify event input on info page
// start at Manage Events listing
$this->openCiviPage("event/manage", "reset=1");
- $this->click("link=$eventTitle");
- $this->waitForPageToLoad($this->getTimeoutMsec());
-
- // Look for Register button
- $this->waitForElementPresent("link=Register Now");
+ $this->clickLink("link=$eventTitle", "link=Register Now");
// Check for correct event info strings
$this->assertStringsPresent($eventInfoStrings);
$this->type("discount_name_1", "Early-bird" . substr(sha1(rand()), 0, 7));
$this->webtestFillDate("discount_start_date_1", "-1 week");
$this->webtestFillDate("discount_end_date_1", "+2 week");
- $this->click("_qf_Fee_submit");
- $this->waitForPageToLoad($this->getTimeoutMsec());
- $this->waitForElementPresent("discounted_value_2_1");
+ $this->clickLink("_qf_Fee_submit", "discounted_value_2_1");
$this->type("discounted_value_1_1","225.00");
$this->type("discounted_value_2_1","300.00");
$this->click("xpath=//fieldset[@id='discount']/fieldset/table/tbody/tr[2]/td[3]/input");
// verify event input on info page
// start at Manage Events listing
$this->openCiviPage("event/manage", "reset=1");
- $this->click("link=$eventTitle");
- $this->waitForPageToLoad($this->getTimeoutMsec());
-
- // Look for Add to Cart button
- $this->waitForElementPresent("link=Add to Cart");
+ $this->clickLink("link=$eventTitle", "link=Add to Cart");
$this->click("link=Add to Cart");
$this->waitForPageToLoad($this->getTimeoutMsec());
$this->assertTrue($this->isTextPresent("$eventTitle has been added to your cart"));
// Find Main Participant
$this->openCiviPage("event/search", "reset=1");
$this->type("sort_name", $firstName);
- $this->click("_qf_Search_refresh");
- $this->waitForPageToLoad($this->getTimeoutMsec());
- $this->waitForElementPresent("xpath=//div[@id='participantSearch']//table//tbody/tr[1]/td[11]/span/a[text()='View']");
- $this->click("xpath=//div[@id='participantSearch']//table//tbody/tr[1]/td[11]/span/a[text()='View']");
- $this->waitForPageToLoad($this->getTimeoutMsec());
- $this->waitForElementPresent("_qf_ParticipantView_cancel-top");
+ $this->clickLink("_qf_Search_refresh", "xpath=//div[@id='participantSearch']//table//tbody/tr[1]/td[11]/span/a[text()='View']");
+ $this->clickLink("xpath=//div[@id='participantSearch']//table//tbody/tr[1]/td[11]/span/a[text()='View']", "_qf_ParticipantView_cancel-top");
$name = $firstName . " " . $lastName;
$status = 'Registered';
// Find additional Participant
$this->openCiviPage("event/search", "reset=1");
$this->type("sort_name", $participantfname);
- $this->click("_qf_Search_refresh");
- $this->waitForPageToLoad($this->getTimeoutMsec());
- $this->waitForElementPresent("xpath=//div[@id='participantSearch']//table//tbody/tr[1]/td[11]/span/a[text()='View']");
- $this->click("xpath=//div[@id='participantSearch']//table//tbody/tr[1]/td[11]/span/a[text()='View']");
- $this->waitForPageToLoad($this->getTimeoutMsec());
- $this->waitForElementPresent("_qf_ParticipantView_cancel-top");
+ $this->clickLink("_qf_Search_refresh", "xpath=//div[@id='participantSearch']//table//tbody/tr[1]/td[11]/span/a[text()='View']");
+ $this->clickLink("xpath=//div[@id='participantSearch']//table//tbody/tr[1]/td[11]/span/a[text()='View']", "_qf_ParticipantView_cancel-top");
$name = $participantfname . " " . $participantlname;
$status = 'Registered';
// Find Main Participant
$this->openCiviPage("event/search", "reset=1");
$this->type("sort_name", $firstName);
- $this->click("_qf_Search_refresh");
- $this->waitForPageToLoad($this->getTimeoutMsec());
- $this->waitForElementPresent("xpath=//div[@id='participantSearch']//table//tbody/tr[1]/td[11]/span/a[text()='View']");
- $this->click("xpath=//div[@id='participantSearch']//table//tbody/tr[1]/td[11]/span/a[text()='View']");
- $this->waitForPageToLoad($this->getTimeoutMsec());
- $this->waitForElementPresent("_qf_ParticipantView_cancel-top");
+ $this->clickLink("_qf_Search_refresh", "xpath=//div[@id='participantSearch']//table//tbody/tr[1]/td[11]/span/a[text()='View']");
+ $this->clickLink("xpath=//div[@id='participantSearch']//table//tbody/tr[1]/td[11]/span/a[text()='View']", "_qf_ParticipantView_cancel-top");
$name = $firstName . " " . $lastName;
$status = 'Registered';
// Find additional Participant
$this->openCiviPage("event/search", "reset=1");
$this->type("sort_name", $participantfname);
- $this->click("_qf_Search_refresh");
- $this->waitForPageToLoad($this->getTimeoutMsec());
- $this->waitForElementPresent("xpath=//div[@id='participantSearch']//table//tbody/tr[1]/td[11]/span/a[text()='View']");
- $this->click("xpath=//div[@id='participantSearch']//table//tbody/tr[1]/td[11]/span/a[text()='View']");
- $this->waitForPageToLoad($this->getTimeoutMsec());
- $this->waitForElementPresent("_qf_ParticipantView_cancel-top");
+ $this->clickLink("_qf_Search_refresh", "xpath=//div[@id='participantSearch']//table//tbody/tr[1]/td[11]/span/a[text()='View']");
+ $this->clickLink("xpath=//div[@id='participantSearch']//table//tbody/tr[1]/td[11]/span/a[text()='View']", "_qf_ParticipantView_cancel-top");
$name = $participantfname . " " . $participantlname;
$status = 'Registered';
// Find Main Participant
$this->openCiviPage('event/search', "reset=1");
$this->type("sort_name", $firstName2);
- $this->click("_qf_Search_refresh");
- $this->waitForPageToLoad($this->getTimeoutMsec());
- $this->waitForElementPresent("xpath=//div[@id='participantSearch']//table//tbody/tr[1]/td[11]/span/a[text()='View']");
- $this->click("xpath=//div[@id='participantSearch']//table//tbody/tr[1]/td[11]/span/a[text()='View']");
- $this->waitForPageToLoad($this->getTimeoutMsec());
- $this->waitForElementPresent("_qf_ParticipantView_cancel-top");
+ $this->clickLink("_qf_Search_refresh", "xpath=//div[@id='participantSearch']//table//tbody/tr[1]/td[11]/span/a[text()='View']");
+ $this->clickLink("xpath=//div[@id='participantSearch']//table//tbody/tr[1]/td[11]/span/a[text()='View']", "_qf_ParticipantView_cancel-top");
$name = $firstName2 . " " . $lastName2;
$status = 'Registered';
// Find additional Participant
$this->openCiviPage("event/search", "reset=1");
$this->type("sort_name", $participantfname2);
- $this->click("_qf_Search_refresh");
- $this->waitForPageToLoad($this->getTimeoutMsec());
- $this->waitForElementPresent("xpath=//div[@id='participantSearch']//table//tbody/tr[1]/td[11]/span/a[text()='View']");
- $this->click("xpath=//div[@id='participantSearch']//table//tbody/tr[1]/td[11]/span/a[text()='View']");
- $this->waitForPageToLoad($this->getTimeoutMsec());
- $this->waitForElementPresent("_qf_ParticipantView_cancel-top");
+ $this->clickLink("_qf_Search_refresh", "xpath=//div[@id='participantSearch']//table//tbody/tr[1]/td[11]/span/a[text()='View']");
+ $this->clickLink("xpath=//div[@id='participantSearch']//table//tbody/tr[1]/td[11]/span/a[text()='View']", "_qf_ParticipantView_cancel-top");
$name = $participantfname2 . " " . $participantlname2;
$status = 'Registered';
$this->type("nick_name", "Nick1");
$this->type("url-1", "http://www.part.com");
- $this->click("_qf_Participant_1_next-Array");
- $this->waitForPageToLoad($this->getTimeoutMsec());
- $this->waitForElementPresent("_qf_Confirm_next-bottom");
+ $this->clickLink("_qf_Participant_1_next-Array", "_qf_Confirm_next-bottom");
$this->click("_qf_Confirm_next-bottom");
$this->waitForPageToLoad($this->getTimeoutMsec());
}
$this->type("current_employer", "ABCD");
$this->type("job_title", "BATCHER");
- $this->click("_qf_Participant_1_next-Array");
- $this->waitForPageToLoad($this->getTimeoutMsec());
- $this->waitForElementPresent("_qf_Confirm_next-bottom");
+ $this->clickLink("_qf_Participant_1_next-Array", "_qf_Confirm_next-bottom");
$this->click("_qf_Confirm_next-bottom");
}
$this->click("_qf_Search_refresh");
$this->waitForPageToLoad($this->getTimeoutMsec());
- $this->click("xpath=//div[@id='participantSearch']/table/tbody//tr/td[@class='crm-participant-sort_name']/a[text()='{$sortName}']/../../td[11]/span/a[text()='View']");
- $this->waitForPageToLoad($this->getTimeoutMsec());
-
- $this->waitForElementPresent("xpath=//table[@class='selector']/tbody/tr/td[8]/span/a[text()='View']");
+ $this->clickLink("xpath=//div[@id='participantSearch']/table/tbody//tr/td[@class='crm-participant-sort_name']/a[text()='{$sortName}']/../../td[11]/span/a[text()='View']", "xpath=//table[@class='selector']/tbody/tr/td[8]/span/a[text()='View']");
$this->click("xpath=//table[@class='selector']/tbody/tr/td[8]/span/a[text()='View']");
$this->waitForPageToLoad($this->getTimeoutMsec());
else {
$this->_testAddMultipleChoiceOptions($field['options']);
}
- $this->click('_qf_Field_next_new-bottom');
- $this->waitForPageToLoad($this->getTimeoutMsec());
- $this->waitForElementPresent('_qf_Field_next-bottom');
+ $this->clickLink('_qf_Field_next_new-bottom', '_qf_Field_next-bottom');
}
// create event.
$this->type('help_pre', 'This is test priceset.');
$this->assertChecked('is_active', 'Verify that Is Active checkbox is set.');
- $this->click('_qf_Set_next-bottom');
-
- $this->waitForPageToLoad($this->getTimeoutMsec());
- $this->waitForElementPresent('_qf_Field_next-bottom');
+ $this->clickLink('_qf_Set_next-bottom', '_qf_Field_next-bottom');
}
function _testAddMultipleChoiceOptions($options) {
$this->select('billing_state_province_id-5', 'value=1004');
$this->type('billing_postal_code-5', '94129');
- $this->click('_qf_Register_upload-bottom');
- $this->waitForPageToLoad($this->getTimeoutMsec());
- $this->waitForElementPresent('_qf_Confirm_next-bottom');
+ $this->clickLink('_qf_Register_upload-bottom', '_qf_Confirm_next-bottom');
$confirmStrings = array('Event Fee(s)', 'Billing Name and Address', 'Credit Card Information');
$this->assertStringsPresent($confirmStrings);
$this->click('_qf_Confirm_next-bottom');
$this->type('help_pre', 'This is test priceset.');
$this->assertChecked('is_active', 'Verify that Is Active checkbox is set.');
- $this->click('_qf_Set_next-bottom');
-
- $this->waitForPageToLoad($this->getTimeoutMsec());
- $this->waitForElementPresent('_qf_Field_next-bottom');
+ $this->clickLink('_qf_Set_next-bottom', '_qf_Field_next-bottom');
}
function _testAddPriceFields($fields) {
$this->waitForElementPresent("xpath=//table/tbody//tr/td[1][text()='{$financialAccountTitle}']/../td[9]/span/a[text()='Edit']");
- $this->click("xpath=//table/tbody//tr/td[1][text()='{$financialAccountTitle}']/../td[9]/span/a[text()='Edit']");
- $this->waitForPageToLoad($this->getTimeoutMsec());
- $this->waitForElementPresent('_qf_FinancialAccount_cancel-botttom');
+ $this->clickLink("xpath=//table/tbody//tr/td[1][text()='{$financialAccountTitle}']/../td[9]/span/a[text()='Edit']", '_qf_FinancialAccount_cancel-botttom');
//Varify Data after Adding new Financial Account
$verifyData = array('name' => $financialAccountTitle,
'description' => $financialAccountDescription,
$orgName = $orgNameEdit;
}
$this->waitForElementPresent("xpath=//table/tbody//tr/td[1][text()='{$financialAccountTitle}']/../td[9]/span/a[text()='Edit']");
- $this->click("xpath=//table/tbody//tr/td[1][text()='{$financialAccountTitle}']/../td[9]/span/a[text()='Edit']");
- $this->waitForPageToLoad($this->getTimeoutMsec());
- $this->waitForElementPresent('_qf_FinancialAccount_cancel-botttom');
+ $this->clickLink("xpath=//table/tbody//tr/td[1][text()='{$financialAccountTitle}']/../td[9]/span/a[text()='Edit']", '_qf_FinancialAccount_cancel-botttom');
$verifyData = array( 'name' => $financialAccountTitle,
'description' => $financialAccountDescription,
$this->waitForElementPresent("xpath=//table/tbody//tr/td[1][text()='{$financialAccountTitle}']/../td[9]/span/a[text()='Edit']");
- $this->click("xpath=//table/tbody//tr/td[1][text()='{$financialAccountTitle}']/../td[9]/span/a[text()='Edit']");
- $this->waitForPageToLoad($this->getTimeoutMsec());
- $this->waitForElementPresent('_qf_FinancialAccount_cancel-botttom');
+ $this->clickLink("xpath=//table/tbody//tr/td[1][text()='{$financialAccountTitle}']/../td[9]/span/a[text()='Edit']", '_qf_FinancialAccount_cancel-botttom');
//Varify Data after Adding new Financial Account
$verifyData = array(
$this->click('_qf_FinancialTypeAccount_next');
$this->waitForElementPresent("xpath=id('ltype')/div/table/tbody/tr/td[1][text()='Accounts Receivable']/../td[7]/span/a[text()='Edit']");
$this->verifyText("xpath=id('ltype')/div/table/tbody/tr/td[1][text()='Accounts Receivable']/../td[2]", preg_quote('Accounts Receivable Account is'));
- $this->click("xpath=id('ltype')/div/table/tbody/tr/td[1][text()='Accounts Receivable']/../td[7]/span/a[text()='Delete']");
- $this->waitForPageToLoad($this->getTimeoutMsec());
- $this->waitForElementPresent('_qf_FinancialTypeAccount_next-botttom');
+ $this->clickLink("xpath=id('ltype')/div/table/tbody/tr/td[1][text()='Accounts Receivable']/../td[7]/span/a[text()='Delete']", '_qf_FinancialTypeAccount_next-botttom');
$this->click('_qf_FinancialTypeAccount_next-botttom');
$this->waitForPageToLoad($this->getTimeoutMsec());
$this->assertElementContainsText('crm-notification-container', 'Selected financial type account has been deleted.', 'Missing text: ' . 'Selected financial type account has been deleted.');
$this->openCiviPage("dashboard", "reset=1");\r
$this->waitForPageToLoad($this->getTimeoutMsec());\r
\r
- $this->click("xpath=//div[@id='recently-viewed']/ul/li[1]/a");\r
- $this->waitForPageToLoad($this->getTimeoutMsec());\r
- $this->waitForElementPresent("_qf_Activity_cancel-bottom");\r
+ $this->clickLink("xpath=//div[@id='recently-viewed']/ul/li[1]/a", "_qf_Activity_cancel-bottom");\r
$this->webtestVerifyTabularData(\r
array(\r
'Current Attachment(s)' => 'Financial_Transactions_'\r
$this->type('note', "Grant Note for $firstName");
// Clicking save.
- $this->click('_qf_Grant_upload');
-
- // wait for page to load
- $this->waitForPageToLoad($this->getTimeoutMsec());
-
- // verify if grant is created with presence of view link
- $this->waitForElementPresent("xpath=//div[@id='Grants']//table/tbody/tr[1]/td[8]/span/a[text()='View']");
+ $this->clickLink('_qf_Grant_upload', "xpath=//div[@id='Grants']//table/tbody/tr[1]/td[8]/span/a[text()='View']");
// click through to the Grant view screen
- $this->click("xpath=//div[@id='Grants']//table/tbody/tr[1]/td[8]/span/a[text()='View']");
- $this->waitForElementPresent('_qf_GrantView_cancel-bottom');
+ $this->clickLink("xpath=//div[@id='Grants']//table/tbody/tr[1]/td[8]/span/a[text()='View']", '_qf_GrantView_cancel-bottom');
$gDate = date('F jS, Y', strtotime('now'));
$this->assertElementContainsText($grantFieldSet, $grantField);
$this->type('id=amount_total', '100.00');
$this->type("css=div#$grantFieldSet input.form-text", '99.99');
- $this->click('id=_qf_Grant_upload-bottom');
- $this->waitForPageToLoad($this->getTimeoutMsec());
-
- // Verify grant is created with presence of view link
- $this->waitForElementPresent("xpath=//div[@id='Grants']//table/tbody/tr[1]/td[8]/span/a[text()='View']");
+ $this->clickLink('id=_qf_Grant_upload-bottom', "xpath=//div[@id='Grants']//table/tbody/tr[1]/td[8]/span/a[text()='View']");
// Click through to the Grant view screen
$this->click("xpath=//div[@id='Grants']//table/tbody/tr[1]/td[8]/span/a[text()='View']");
$this->type("note", "Grant Note");
// Clicking save.
- $this->click("_qf_Grant_upload");
- $this->waitForPageToLoad($this->getTimeoutMsec());
-
- // verify if Grant is created
- $this->waitForElementPresent("xpath=//div[@id='Grants']//table//tbody/tr[1]/td[8]/span/a[text()='View']");
+ $this->clickLink("_qf_Grant_upload", "xpath=//div[@id='Grants']//table//tbody/tr[1]/td[8]/span/a[text()='View']");
//click through to the Grant view screen
$this->click("xpath=//div[@id='Grants']//table/tbody/tr[1]/td[8]/span/a[text()='View']");
$this->_checkImportMapperData($headers, $rows, $existingMapping, isset($other['checkMapperHeaders']) ? $other['checkMapperHeaders'] : array());
// Submit form.
- $this->click('_qf_Preview_next-bottom');
- $this->waitForPageToLoad($this->getTimeoutMsec());
-
- // Visit summary page.
- $this->waitForElementPresent("_qf_Summary_next");
+ $this->clickLink('_qf_Preview_next-bottom', "_qf_Summary_next");
// Check success message.
$this->assertTrue($this->isTextPresent("Import has completed successfully. The information below summarizes the results."));
$this->click("css=li#tab_group a");
$this->waitForElementPresent("_qf_GroupContact_next");
$this->select("group_id", "$groupName");
- $this->click("_qf_GroupContact_next");
- $this->waitForPageToLoad($this->getTimeoutMsec());
- $this->waitForElementPresent("_qf_GroupContact_next");
+ $this->clickLink("_qf_GroupContact_next", "_qf_GroupContact_next");
// configure default mail-box
$this->setupDefaultMailbox();
$this->click("css=li#tab_group a");
$this->waitForElementPresent("_qf_GroupContact_next");
$this->select("group_id", "$groupName");
- $this->click("_qf_GroupContact_next");
- $this->waitForPageToLoad($this->getTimeoutMsec());
- $this->waitForElementPresent("_qf_GroupContact_next");
+ $this->clickLink("_qf_GroupContact_next", "_qf_GroupContact_next");
// configure default mail-box
$this->openCiviPage("admin/mailSettings", "action=update&id=1&reset=1", '_qf_MailSettings_cancel-bottom');
'Source' => $sourceText,
);
$this->webtestVerifyTabularData($verifyData);
- $this->click("_qf_MembershipView_cancel-bottom");
-
- $this->waitForPageToLoad($this->getTimeoutMsec());
- $this->waitForElementPresent("xpath=//div[@id='memberships']/div/table/tbody//tr/td[1][text()='{$memTypeParams['membership_type']}']/../td[7]");
+ $this->clickLink("_qf_MembershipView_cancel-bottom", "xpath=//div[@id='memberships']/div/table/tbody//tr/td[1][text()='{$memTypeParams['membership_type']}']/../td[7]");
$this->click("xpath=//div[@id='memberships']/div/table/tbody//tr/td[1][text()='{$memTypeParams['membership_type']}']/../td[9]/span/a[2][text()='Edit']");
$this->waitForElementPresent("_qf_Membership_cancel-bottom");
$this->_testDefaultSenarios("National_Membership_{$title}-section", 2);
$this->contactInfoFill($firstName, $lastName, $email, $contactParams, $streetAddress);
- $this->click("_qf_Main_upload-bottom");
- $this->waitForPageToLoad($this->getTimeoutMsec());
- $this->waitForElementPresent("_qf_Confirm_next-bottom");
+ $this->clickLink("_qf_Main_upload-bottom", "_qf_Confirm_next-bottom");
$this->click("_qf_Confirm_next-bottom");
$this->waitForPageToLoad($this->getTimeoutMsec());
$this->_testDefaultSenarios("National_Membership_{$title}-section", 4);
$this->_testDefaultSenarios("Second_Membership_{$title}-section", 2);
$this->contactInfoFill($firstName, $lastName, $email, $contactParams, $streetAddress);
- $this->click("_qf_Main_upload-bottom");
- $this->waitForPageToLoad($this->getTimeoutMsec());
- $this->waitForElementPresent("_qf_Confirm_next-bottom");
+ $this->clickLink("_qf_Main_upload-bottom", "_qf_Confirm_next-bottom");
$this->click("_qf_Confirm_next-bottom");
$this->waitForPageToLoad($this->getTimeoutMsec());
$this->_testDefaultSenarios("National_Membership_{$title}-section", 3);
$this->contactInfoFill($firstName, $lastName, $email, $contactParams, $streetAddress);
- $this->click("_qf_Main_upload-bottom");
- $this->waitForPageToLoad($this->getTimeoutMsec());
- $this->waitForElementPresent("_qf_Confirm_next-bottom");
+ $this->clickLink("_qf_Main_upload-bottom", "_qf_Confirm_next-bottom");
$this->click("_qf_Confirm_next-bottom");
$this->waitForPageToLoad($this->getTimeoutMsec());
$this->_testDefaultSenarios("National_Membership_{$title}-section", 1);
$this->contactInfoFill($firstName, $lastName, $email, $contactParams, $streetAddress);
- $this->click("_qf_Main_upload-bottom");
- $this->waitForPageToLoad($this->getTimeoutMsec());
- $this->waitForElementPresent("_qf_Main_upload-bottom");
+ $this->clickLink("_qf_Main_upload-bottom", "_qf_Main_upload-bottom");
$this->assertTrue($this->isTextPresent("You already have a lifetime membership and cannot select a membership with a shorter term."));
}
$this->type('help_pre', $setHelp);
$this->assertChecked('is_active', 'Verify that Is Active checkbox is set.');
- $this->click('_qf_Set_next-bottom');
-
- $this->waitForPageToLoad($this->getTimeoutMsec());
- $this->waitForElementPresent('_qf_Field_next-bottom');
+ $this->clickLink('_qf_Set_next-bottom', '_qf_Field_next-bottom');
$this->assertTrue($this->isTextPresent("Your Set '{$setTitle}' has been added. You can add fields to this set now."));
}
break;
}
$this->select("financial_type_id", "label={$contributionType}");
- $this->click('_qf_Field_next_new-bottom');
- $this->waitForPageToLoad($this->getTimeoutMsec());
- $this->waitForElementPresent('_qf_Field_next-bottom');
+ $this->clickLink('_qf_Field_next_new-bottom', '_qf_Field_next-bottom');
$this->assertTrue($this->isTextPresent("Price Field '{$label}' has been saved."));
}
return array($memTypeTitle1, $memTypeTitle2, $memTypeTitle3);
$this->type("sort_name", "$firstName $lastName");
$this->click("member_test");
- $this->click("_qf_Search_refresh");
- $this->waitForPageToLoad($this->getTimeoutMsec());
-
- $this->waitForElementPresent("xpath=//div[@id='memberSearch']/table/tbody/tr[1]/td[11]/span/a[text()='View']");
+ $this->clickLink("_qf_Search_refresh", "xpath=//div[@id='memberSearch']/table/tbody/tr[1]/td[11]/span/a[text()='View']");
$this->click("xpath=//div[@id='memberSearch']/table/tbody/tr[1]/td[11]/span/a[text()='View']");
$this->waitForElementPresent("_qf_MembershipView_cancel-bottom");
$lastName = 'Smith_' . substr(sha1(rand()), 0, 7);
$this->type('email-5', "{$lastName}@example.com");
- $this->click("_qf_Main_upload-bottom");
- $this->waitForPageToLoad($this->getTimeoutMsec());
- $this->waitForElementPresent("_qf_Confirm_next_checkout");
+ $this->clickLink("_qf_Main_upload-bottom", "_qf_Confirm_next_checkout");
$text = 'I want this membership to be renewed automatically every 1 year(s).';
$this->assertElementContainsText('css=div.display-block', $text, 'Missing text: ' . $text);
$lastName = 'Smith_' . substr(sha1(rand()), 0, 7);
$this->type('email-5', "{$lastName}@example.com");
- $this->click("_qf_Main_upload-bottom");
- $this->waitForPageToLoad($this->getTimeoutMsec());
- $this->waitForElementPresent("_qf_Confirm_next_checkout");
+ $this->clickLink("_qf_Main_upload-bottom", "_qf_Confirm_next_checkout");
$text = 'I want this membership to be renewed automatically every 1 year(s).';
$this->assertElementContainsText('css=div.display-block', $text, 'Missing text: ' . $text);
$this->type('email-5', "{$lastName}@example.com");
- $this->click("_qf_Main_upload-bottom");
- $this->waitForPageToLoad($this->getTimeoutMsec());
- $this->waitForElementPresent("_qf_Confirm_next-bottom");
+ $this->clickLink("_qf_Main_upload-bottom", "_qf_Confirm_next-bottom");
$text = 'I want this membership to be renewed automatically every 1 year(s).';
$this->assertElementContainsText('css=div.display-block', $text, 'Missing text: ' . $text);
$this->type('help_pre', $setHelp);
$this->assertChecked('is_active', 'Verify that Is Active checkbox is set.');
- $this->click('_qf_Set_next-bottom');
-
- $this->waitForPageToLoad($this->getTimeoutMsec());
- $this->waitForElementPresent('_qf_Field_next-bottom');
+ $this->clickLink('_qf_Set_next-bottom', '_qf_Field_next-bottom');
$this->assertElementContainsText('crm-notification-container', "Your Set '{$setTitle}' has been added. You can add fields to this set now.");
}
break;
}
$this->select("financial_type_id", "label={$contributionType}");
- $this->click('_qf_Field_next_new-bottom');
- $this->waitForPageToLoad($this->getTimeoutMsec());
- $this->waitForElementPresent('_qf_Field_next-bottom');
+ $this->clickLink('_qf_Field_next_new-bottom', '_qf_Field_next-bottom');
$this->assertElementContainsText('crm-notification-container', "Price Field '{$label}' has been saved.");
}
return array($memTypeTitle1, $memTypeTitle2);
$this->openCiviPage('admin/price', 'reset=1');
// Use the price set id ($sid) to pick the correct row
- $this->click("css=tr#row_{$sid} a[title='Preview Price Set']");
-
- $this->waitForPageToLoad($this->getTimeoutMsec());
- // Look for Register button
- $this->waitForElementPresent('_qf_Preview_cancel-bottom');
+ $this->clickLink("css=tr#row_{$sid} a[title='Preview Price Set']", '_qf_Preview_cancel-bottom');
// Check for expected price set field strings
$this->assertStringsPresent($validateStrings);
$this->select("billing_country_id-5", "value=1228");
$this->select("billing_state_province_id-5", "value=1004");
$this->type("billing_postal_code-5", "94129");
- $this->click("_qf_Main_upload-bottom");
-
- $this->waitForPageToLoad($this->getTimeoutMsec());
- $this->waitForElementPresent("_qf_Confirm_next-bottom");
+ $this->clickLink("_qf_Main_upload-bottom", "_qf_Confirm_next-bottom");
$this->click("_qf_Confirm_next-bottom");
$this->waitForPageToLoad($this->getTimeoutMsec());
if($renew){
$this->openCiviPage('member/search', 'reset=1', 'member_end_date_high');
$this->type("sort_name", "{$contactParams['first_name']} {$contactParams['last_name']}");
- $this->click("_qf_Search_refresh");
- $this->waitForPageToLoad($this->getTimeoutMsec());
- $this->waitForElementPresent("xpath=//div[@id='memberSearch']/table/tbody/tr");
+ $this->clickLink("_qf_Search_refresh", "xpath=//div[@id='memberSearch']/table/tbody/tr");
$this->click("xpath=//div[@id='memberSearch']/table/tbody//tr/td[4][text()='{$memTypeTitle1}']/../td[11]/span/a[text()='View']");
$this->waitForElementPresent("_qf_MembershipView_cancel-bottom");
$year = CRM_Utils_Date::processDate($this->getText("xpath=//form[@id='MembershipView']//table/tbody/tr/td[text()='End date']/following-sibling::td"));
$this->select("billing_country_id-5", "value=1228");
$this->select("billing_state_province_id-5", "value=1004");
$this->type("billing_postal_code-5", "94129");
- $this->click("_qf_Main_upload-bottom");
-
- $this->waitForPageToLoad($this->getTimeoutMsec());
- $this->waitForElementPresent("_qf_Confirm_next-bottom");
+ $this->clickLink("_qf_Main_upload-bottom", "_qf_Confirm_next-bottom");
$this->click("_qf_Confirm_next-bottom");
$this->waitForPageToLoad($this->getTimeoutMsec());
$this->openCiviPage("admin/contribute/membership", "reset=1&action=update&id={$pageId}", '_qf_MembershipBlock_next-bottom');
$this->click("membership_type_$memTypeId1");
$this->click("membership_type_$memTypeId2");
- $this->click('_qf_MembershipBlock_next');
- $this->waitForPageToLoad($this->getTimeoutMsec());
- $this->waitForElementPresent('_qf_MembershipBlock_next-bottom');
+ $this->clickLink('_qf_MembershipBlock_next', '_qf_MembershipBlock_next-bottom');
$text = "'MembershipBlock' information has been saved.";
$this->assertElementContainsText('crm-notification-container', $text, 'Missing text: ' . $text);
$this->openCiviPage("member/search", "reset=1", "member_end_date_high");
$this->type("sort_name", "$firstName $lastName");
- $this->click("_qf_Search_refresh");
-
- $this->waitForPageToLoad($this->getTimeoutMsec());
-
- $this->waitForElementPresent("xpath=//div[@id='memberSearch']/table/tbody/tr");
+ $this->clickLink("_qf_Search_refresh", "xpath=//div[@id='memberSearch']/table/tbody/tr");
$this->click("xpath=//div[@id='memberSearch']/table/tbody/tr/td[11]/span/a[text()='View']");
$this->waitForElementPresent("_qf_MembershipView_cancel-bottom");
$this->openCiviPage("contribute/search","reset=1", "contribution_date_low");
$this->type("sort_name", "$firstName $lastName");
- $this->click("_qf_Search_refresh");
- $this->waitForPageToLoad($this->getTimeoutMsec());
-
- $this->waitForElementPresent("xpath=//div[@id='contributionSearch']//table//tbody/tr[1]/td[11]/span/a[text()='View']");
- $this->click("xpath=//div[@id='contributionSearch']//table//tbody/tr[1]/td[11]/span/a[text()='View']");
- $this->waitForPageToLoad($this->getTimeoutMsec());
- $this->waitForElementPresent("_qf_ContributionView_cancel-bottom");
+ $this->clickLink("_qf_Search_refresh", "xpath=//div[@id='contributionSearch']//table//tbody/tr[1]/td[11]/span/a[text()='View']");
+ $this->clickLink("xpath=//div[@id='contributionSearch']//table//tbody/tr[1]/td[11]/span/a[text()='View']", "_qf_ContributionView_cancel-bottom");
//View Contribution Record and verify data
$expected = array(
$this->select("billing_state_province_id-5", "value=1004");
$this->type("billing_postal_code-5", "94129");
- $this->click("_qf_Main_upload-bottom");
-
- $this->waitForPageToLoad($this->getTimeoutMsec());
- $this->waitForElementPresent("_qf_Confirm_next-bottom");
+ $this->clickLink("_qf_Main_upload-bottom", "_qf_Confirm_next-bottom");
$this->click("_qf_Confirm_next-bottom");
$this->waitForPageToLoad($this->getTimeoutMsec());
$this->openCiviPage("member/search", "reset=1", "member_end_date_high");
$this->type("sort_name", "$firstName $lastName");
- $this->click("_qf_Search_refresh");
- $this->waitForPageToLoad($this->getTimeoutMsec());
-
- $this->waitForElementPresent('css=#memberSearch table tbody tr td span a.action-item-first');
+ $this->clickLink("_qf_Search_refresh", 'css=#memberSearch table tbody tr td span a.action-item-first');
$this->click('css=#memberSearch table tbody tr td span a.action-item-first');
$this->waitForElementPresent("_qf_MembershipView_cancel-bottom");
$this->select("billing_state_province_id-5", "value=1004");
$this->type("billing_postal_code-5", "94129");
- $this->click("_qf_Main_upload-bottom");
-
- $this->waitForPageToLoad($this->getTimeoutMsec());
- $this->waitForElementPresent("_qf_Confirm_next-bottom");
+ $this->clickLink("_qf_Main_upload-bottom", "_qf_Confirm_next-bottom");
$this->click("_qf_Confirm_next-bottom");
$this->waitForPageToLoad($this->getTimeoutMsec());
$this->openCiviPage("member/search", "reset=1", "member_end_date_high");
$this->type("sort_name", "$firstName $lastName");
- $this->click("_qf_Search_refresh");
- $this->waitForPageToLoad($this->getTimeoutMsec());
-
- $this->waitForElementPresent('css=#memberSearch table tbody tr td span a.action-item-first');
+ $this->clickLink("_qf_Search_refresh", 'css=#memberSearch table tbody tr td span a.action-item-first');
$this->click('css=#memberSearch table tbody tr td span a.action-item-first');
$this->waitForElementPresent("_qf_MembershipView_cancel-bottom");
$this->select("billing_state_province_id-5", "value=1004");
$this->type("billing_postal_code-5", "94129");
- $this->click("_qf_Main_upload-bottom");
-
- $this->waitForPageToLoad($this->getTimeoutMsec());
- $this->waitForElementPresent("_qf_Confirm_next-bottom");
+ $this->clickLink("_qf_Main_upload-bottom", "_qf_Confirm_next-bottom");
$this->click("_qf_Confirm_next-bottom");
$this->waitForPageToLoad($this->getTimeoutMsec());
$this->openCiviPage("member/search", "reset=1", "member_end_date_high");
$this->type("sort_name", "$firstName $lastName");
- $this->click("_qf_Search_refresh");
- $this->waitForPageToLoad($this->getTimeoutMsec());
-
- $this->waitForElementPresent('css=#memberSearch table tbody tr td span a.action-item-first');
+ $this->clickLink("_qf_Search_refresh", 'css=#memberSearch table tbody tr td span a.action-item-first');
$this->click('css=#memberSearch table tbody tr td span a.action-item-first');
$this->waitForElementPresent("_qf_MembershipView_cancel-bottom");
$this->type("cvv2", "000");
$this->select("credit_card_exp_date[M]", "value=1");
$this->select("credit_card_exp_date[Y]", "value=2020");
- $this->click("_qf_Main_upload-bottom");
-
- $this->waitForPageToLoad($this->getTimeoutMsec());
- $this->waitForElementPresent("_qf_Confirm_next-bottom");
+ $this->clickLink("_qf_Main_upload-bottom", "_qf_Confirm_next-bottom");
$this->click("_qf_Confirm_next-bottom");
$this->waitForPageToLoad($this->getTimeoutMsec());
$this->openCiviPage("member/search", "reset=1", "member_end_date_high");
$this->type("sort_name", "$firstName $lastName");
- $this->click("_qf_Search_refresh");
- $this->waitForPageToLoad($this->getTimeoutMsec());
-
- $this->waitForElementPresent('css=#memberSearch table tbody tr td span a.action-item-first');
+ $this->clickLink("_qf_Search_refresh", 'css=#memberSearch table tbody tr td span a.action-item-first');
$this->click('css=#memberSearch table tbody tr td span a.action-item-first');
$this->waitForElementPresent("_qf_MembershipView_cancel-bottom");
$this->select("billing_country_id-5", "value=1228");
$this->select("billing_state_province_id-5", "value=1004");
$this->type("billing_postal_code-5", "94129");
- $this->click("_qf_Main_upload-bottom");
- $this->waitForPageToLoad($this->getTimeoutMsec());
- $this->waitForElementPresent("_qf_Confirm_next-bottom");
+ $this->clickLink("_qf_Main_upload-bottom", "_qf_Confirm_next-bottom");
$this->click("_qf_Confirm_next-bottom");
$this->waitForPageToLoad($this->getTimeoutMsec());
$this->openCiviPage("member/search", "reset=1", "member_end_date_high");
$this->type("sort_name", "$organisationName");
- $this->click("_qf_Search_refresh");
- $this->waitForPageToLoad($this->getTimeoutMsec());
-
- $this->waitForElementPresent('css=#memberSearch table tbody tr td span a.action-item-first');
+ $this->clickLink("_qf_Search_refresh", 'css=#memberSearch table tbody tr td span a.action-item-first');
$this->click('css=#memberSearch table tbody tr td span a.action-item-first');
$this->waitForElementPresent("_qf_MembershipView_cancel-bottom");
$this->openCiviPage("member/search", "reset=1", "member_end_date_high");
$this->type("sort_name", "$lastName, $firstName");
- $this->click("_qf_Search_refresh");
- $this->waitForPageToLoad($this->getTimeoutMsec());
-
- $this->waitForElementPresent('css=#memberSearch table tbody tr td span a.action-item-first');
+ $this->clickLink("_qf_Search_refresh", 'css=#memberSearch table tbody tr td span a.action-item-first');
$this->click('css=#memberSearch table tbody tr td span a.action-item-first');
$this->waitForElementPresent("_qf_MembershipView_cancel-bottom");
$this->select("billing_state_province_id-5", "value=1004");
$this->type("billing_postal_code-5", "94129");
- $this->click("_qf_Main_upload-bottom");
-
- $this->waitForPageToLoad($this->getTimeoutMsec());
- $this->waitForElementPresent("_qf_Confirm_next-bottom");
+ $this->clickLink("_qf_Main_upload-bottom", "_qf_Confirm_next-bottom");
$this->click("_qf_Confirm_next-bottom");
$this->waitForPageToLoad($this->getTimeoutMsec());
$this->openCiviPage("member/search", "reset=1", "member_end_date_high");
$this->type("sort_name", "$organisationName");
- $this->click("_qf_Search_refresh");
- $this->waitForPageToLoad($this->getTimeoutMsec());
-
- $this->waitForElementPresent('css=#memberSearch table tbody tr td span a.action-item-first');
+ $this->clickLink("_qf_Search_refresh", 'css=#memberSearch table tbody tr td span a.action-item-first');
$this->click('css=#memberSearch table tbody tr td span a.action-item-first');
$this->waitForElementPresent("_qf_MembershipView_cancel-bottom");
$this->openCiviPage("member/search", "reset=1", "member_end_date_high");
$this->type("sort_name", "$lastName, $firstName");
- $this->click("_qf_Search_refresh");
- $this->waitForPageToLoad($this->getTimeoutMsec());
-
- $this->waitForElementPresent('css=#memberSearch table tbody tr td span a.action-item-first');
+ $this->clickLink("_qf_Search_refresh", 'css=#memberSearch table tbody tr td span a.action-item-first');
$this->click('css=#memberSearch table tbody tr td span a.action-item-first');
$this->waitForElementPresent("_qf_MembershipView_cancel-bottom");
$this->openCiviPage('admin/contribute/membership', "reset=1&action=update&id={$pageId}", "_qf_MembershipBlock_next-bottom");
$this->click("membership_type_$memTypeId1");
$this->click("membership_type_$memTypeId2");
- $this->click('_qf_MembershipBlock_next');
- $this->waitForPageToLoad($this->getTimeoutMsec());
- $this->waitForElementPresent('_qf_MembershipBlock_next-bottom');
+ $this->clickLink('_qf_MembershipBlock_next', '_qf_MembershipBlock_next-bottom');
$text = "'MembershipBlock' information has been saved.";
$this->assertElementContainsText('crm-notification-container', $text, 'Missing text: ' . $text);
$this->_testOnlineMembershipSignup($pageId, $memTypeTitle1, $cid);
//Find Member
$this->openCiviPage('member/search', 'reset=1', 'member_end_date_high');
$this->type("sort_name", "$firstName1 $lastName1");
- $this->click("_qf_Search_refresh");
- $this->waitForPageToLoad($this->getTimeoutMsec());
- $this->waitForElementPresent("xpath=//div[@id='memberSearch']/table/tbody/tr");
+ $this->clickLink("_qf_Search_refresh", "xpath=//div[@id='memberSearch']/table/tbody/tr");
$this->click("xpath=//div[@id='memberSearch']/table/tbody/tr/td[11]/span/a[text()='View']");
$this->waitForElementPresent("_qf_MembershipView_cancel-bottom");
$this->verifyText("xpath=//form[@id='PledgeView']//table/tbody/tr/td[text()='{$label}']/following-sibling::td", preg_quote($value));
}
- $this->click("_qf_PledgeView_next-bottom");
- $this->waitForPageToLoad($this->getTimeoutMsec());
-
- $this->waitForElementPresent("xpath=//div[@id='Pledges']//table//tbody/tr[1]/td[10]/span[1]/a[text()='View']");
+ $this->clickLink("_qf_PledgeView_next-bottom", "xpath=//div[@id='Pledges']//table//tbody/tr[1]/td[10]/span[1]/a[text()='View']");
$this->click("xpath=//div[@id='Pledges']//table//tbody/tr[1]/td[1]/span/a");
$this->waitForElementPresent("xpath=//div[@id='Pledges']//table//tbody//tr//td[2]/table/tbody/tr[2]/td[8]/a[text()='Record Payment (Check, Cash, EFT ...)']");
}
)
);
- $this->click("_qf_PledgeView_next-bottom");
- $this->waitForPageToLoad($this->getTimeoutMsec());
-
- $this->waitForElementPresent("xpath=//div[@id='Pledges']//table//tbody/tr[1]/td[10]/span/a[text()='View']");
+ $this->clickLink("_qf_PledgeView_next-bottom", "xpath=//div[@id='Pledges']//table//tbody/tr[1]/td[10]/span/a[text()='View']");
$this->click("xpath=//div[@id='Pledges']//table//tbody/tr[1]/td[1]/span/a");
$this->waitForElementPresent("xpath=//div[@id='Pledges']//table//tbody//tr//td/table/tbody/tr[2]/td[8]/a[text()='Record Payment (Check, Cash, EFT ...)']");
$this->click("xpath=//div[@id='Pledges']//table//tbody//tr//td/table/tbody/tr[2]/td[8]/a[text()='Record Payment (Check, Cash, EFT ...)']");
)
);
- $this->click("_qf_PledgeView_next-bottom");
- $this->waitForPageToLoad($this->getTimeoutMsec());
-
- $this->waitForElementPresent("xpath=//div[@id='Pledges']//table//tbody/tr[1]/td[10]/span/a[text()='View']");
+ $this->clickLink("_qf_PledgeView_next-bottom", "xpath=//div[@id='Pledges']//table//tbody/tr[1]/td[10]/span/a[text()='View']");
$this->click("xpath=//div[@id='Pledges']//table//tbody/tr[1]/td[1]/span/a");
$this->waitForElementPresent("xpath=//div[@id='Pledges']//table//tbody//tr//td/table/tbody/tr[4]/td[8]/a[text()='Record Payment (Check, Cash, EFT ...)']");
$this->click("xpath=//div[@id='Pledges']//table//tbody//tr//td/table/tbody/tr[4]/td[8]/a[text()='Record Payment (Check, Cash, EFT ...)']");
)
);
- $this->click("_qf_PledgeView_next-bottom");
- $this->waitForPageToLoad($this->getTimeoutMsec());
-
- $this->waitForElementPresent("xpath=//div[@id='Pledges']//table//tbody/tr[1]/td[10]/span/a[text()='View']");
+ $this->clickLink("_qf_PledgeView_next-bottom", "xpath=//div[@id='Pledges']//table//tbody/tr[1]/td[10]/span/a[text()='View']");
$this->click("xpath=//div[@id='Pledges']//table//tbody/tr[1]/td[1]/span/a");
$this->waitForElementPresent("xpath=//div[@id='Pledges']//table//tbody//tr//td/table/tbody/tr[2]/td[8]/a[text()='Record Payment (Check, Cash, EFT ...)']");
$this->click("xpath=//div[@id='Pledges']//table//tbody//tr//td/table/tbody/tr[2]/td[8]/a[text()='Record Payment (Check, Cash, EFT ...)']");
)
);
- $this->click("_qf_PledgeView_next-bottom");
- $this->waitForPageToLoad($this->getTimeoutMsec());
-
- $this->waitForElementPresent("xpath=//div[@id='Pledges']//table//tbody/tr[1]/td[10]/span/a[text()='View']");
+ $this->clickLink("_qf_PledgeView_next-bottom", "xpath=//div[@id='Pledges']//table//tbody/tr[1]/td[10]/span/a[text()='View']");
$this->click("xpath=//div[@id='Pledges']//table//tbody/tr[1]/td[1]/span/a");
$this->waitForElementPresent("xpath=//div[@id='Pledges']//table//tbody//tr//td/table/tbody/tr[4]/td[8]/a[text()='Record Payment (Check, Cash, EFT ...)']");
$this->click("xpath=//div[@id='Pledges']//table//tbody//tr//td/table/tbody/tr[4]/td[8]/a[text()='Record Payment (Check, Cash, EFT ...)']");
'Pledge Status' => 'Pending',
)
);
- $this->click('_qf_PledgeView_next-bottom');
- $this->waitForPageToLoad("30000");
-
- $this->waitForElementPresent("xpath=//div[@id='Pledges']//table//tbody/tr[1]/td[10]/span/a[text()='View']");
+ $this->clickLink('_qf_PledgeView_next-bottom', "xpath=//div[@id='Pledges']//table//tbody/tr[1]/td[10]/span/a[text()='View']");
$this->click("xpath=//div[@id='Pledges']//table//tbody/tr[1]/td[1]/span/a");
$this->waitForElementPresent("xpath=//div[@id='Pledges']//table//tbody//tr//td/table/tbody/tr[2]/td[8]/a[text()='Record Payment (Check, Cash, EFT ...)']");
$this->click("xpath=//div[@id='Pledges']//table//tbody//tr//td/table/tbody/tr[2]/td[8]/a");
'Send additional reminders' => '4 days after the last one sent',
)
);
- $this->click('_qf_PledgeView_next-bottom');
- $this->waitForPageToLoad($this->getTimeoutMsec());
-
- $this->waitForElementPresent("xpath=//div[@id='Pledges']//table//tbody/tr[1]/td[10]/span/a[text()='View']");
+ $this->clickLink('_qf_PledgeView_next-bottom', "xpath=//div[@id='Pledges']//table//tbody/tr[1]/td[10]/span/a[text()='View']");
$this->click("xpath=//div[@id='Pledges']//table//tbody/tr[1]/td[1]/span/a");
$this->waitForElementPresent("xpath=//div[@id='Pledges']//table//tbody//tr//td/table/tbody/tr[2]/td[8]/a[text()='Record Payment (Check, Cash, EFT ...)']");
}
$this->waitForElementPresent('sort_name');
$this->type('sort_name', $lastName);
$this->waitForElementPresent('_qf_Search_refresh');
- $this->click('_qf_Search_refresh');
- $this->waitForPageToLoad($this->getTimeoutMsec());
- $this->waitForElementPresent('Go');
+ $this->clickLink('_qf_Search_refresh', 'Go');
$this->click('CIVICRM_QFID_ts_all_4');
$this->click('Go');
$this->waitForElementPresent('_qf_Reserve_next_reserveToInterview-top');
$this->click('is_searchable');
$this->click('in_selector');
// click on save
- $this->click('_qf_Field_next-bottom');
- $this->waitForPageToLoad($this->getTimeoutMsec());
-
- // Add Individual Contact.
- $this->waitForElementPresent("xpath=//div[@id='field_page']/div[1]/a[4]/span[text()='Use (create mode)']");
+ $this->clickLink('_qf_Field_next-bottom', "xpath=//div[@id='field_page']/div[1]/a[4]/span[text()='Use (create mode)']");
$this->click("xpath=//div[@id='field_page']/div[1]/a[4]/span[text()='Use (create mode)']");
$this->waitForElementPresent('_qf_Edit_next');
// Edit first profile field
$this->waitForElementPresent("xpath=//table/tbody/tr[1]/td[9]");
- $this->click("xpath=//table/tbody/tr[1]/td[9]/span[1]/a[1]");
-
- // Verify that visibility field is present in edit form
- $this->waitForPageToLoad($this->getTimeoutMsec());
- $this->waitForElementPresent('_qf_Field_next-bottom');
+ $this->clickLink("xpath=//table/tbody/tr[1]/td[9]/span[1]/a[1]", '_qf_Field_next-bottom');
// sleep 5 to make sure jQuery is not hiding field after page load
// Because it tends to cause problems, all uses of sleep() must be justified in comments
// Justification for this instance: FIXME
sleep(3);
$this->select("group_id", "label=Case Resources");
- $this->click("_qf_GroupContact_next");
-
- $this->waitForPageToLoad($this->getTimeoutMsec());
- $this->waitForElementPresent("xpath=//form[@id='GroupContact']//div[@class='view-content']//div[@class='dataTables_wrapper']/table/tbody/tr/td[4]/a");
+ $this->clickLink("_qf_GroupContact_next", "xpath=//form[@id='GroupContact']//div[@class='view-content']//div[@class='dataTables_wrapper']/table/tbody/tr/td[4]/a");
$this->click("xpath=//form[@id='GroupContact']//div[@class='view-content']//div[@class='dataTables_wrapper']/table/tbody/tr/td[4]/a");
// Check confirmation alert.
$this->select("relationship_type_id", "label=Employee of");
$this->webtestFillAutocomplete("Default Organization");
$this->waitForElementPresent("quick-save");
- $this->click("quick-save");
- $this->waitForPageToLoad($this->getTimeoutMsec());
- $this->waitForElementPresent("xpath=//div[@id='current-relationships']//a[text()='Disable']");
+ $this->clickLink("quick-save", "xpath=//div[@id='current-relationships']//a[text()='Disable']");
$this->click("xpath=//div[@id='current-relationships']//a[text()='Disable']");
$this->assertTrue((bool)preg_match("/^Are you sure you want to disable this relationship/",
$this->getConfirmation()