$this->click("_qf_Contact_upload_view");
$this->waitForPageToLoad($this->getTimeoutMsec());
$this->_searchBuilder('Email', NULL, NULL, 'IS NULL');
- $this->type('CRM_Contact_Form_Search_Builder-rows-per-page-select', '100');
- $this->waitForElementPresent('CRM_Contact_Form_Search_Builder-rows-per-page-select');
$names = array(
1 => $firstName1,
2 => $firstName2,
}
//searching contacts whose phone field is not empty
$this->_searchBuilder('Phone', NULL, $firstName, 'IS NOT EMPTY');
- $this->type('CRM_Contact_Form_Search_Builder-rows-per-page-select', '100');
- $this->waitForElementPresent('CRM_Contact_Form_Search_Builder-rows-per-page-select');
$this->assertTrue($this->isTextPresent($firstName));
$firstName4 = "AB" . substr(sha1(rand()), 0, 7);
$this->clickLink('_qf_Builder_refresh');
$this->waitForAjaxContent();
- $this->waitForText('search-status', "2 Contacts");
+ $this->assertElementContainsText("xpath=//div[@id='search-status']/table/tbody/tr[1]/td", "2 Contacts");
$this->click("xpath=//div[@class='crm-accordion-header crm-master-accordion-header']");
$this->enterValues(1, 2, 'Membership', 'Membership Status', NULL, '=', array('New'));
$this->clickLink('_qf_Builder_refresh');
$this->waitForAjaxContent();
- $this->waitForText('search-status', "1 Contact");
+ $this->assertElementContainsText("xpath=//div[@id='search-status']/table/tbody/tr[1]/td", "1 Contact");
$this->enterValues(1, 2, 'Membership', 'Membership Status', NULL, '=', array('Grace'));
$this->clickLink('_qf_Builder_refresh');
$this->waitForAjaxContent();
- $this->waitForText('search-status', "1 Contact");
+ $this->assertElementContainsText("xpath=//div[@id='search-status']/table/tbody/tr[1]/td", "1 Contact");
$this->click("xpath=//div[@class='crm-accordion-header crm-master-accordion-header']");
$this->waitForElementPresent("xpath=//div[@id='map-field']/div[1]/table/tbody/tr[2]/td/a");
$this->enterValues(1, 2, 'Membership', 'Membership Status', NULL, 'IN', array('New', 'Grace'));
$this->clickLink('_qf_Builder_refresh');
$this->waitForAjaxContent();
- $this->waitForText('search-status', "2 Contacts");
+ $this->assertElementContainsText("xpath=//div[@id='search-status']/table/tbody/tr[1]/td", "2 Contacts");
$this->click("xpath=//div[@class='crm-accordion-header crm-master-accordion-header']");
$this->waitForElementPresent("xpath=//div[@id='map-field']/div[1]/table/tbody/tr[2]/td/a");
$this->multiselect2("membership_status_id", array("New", "Grace"));
$this->clickLink('_qf_Search_refresh');
$this->waitForAjaxContent();
- $this->waitForText('search-status', "2 Results");
+ $this->assertElementContainsText("xpath=//div[@id='search-status']/table/tbody/tr[1]/td", "2 Results");
$this->openCiviPage("member/search", "reset=1", "_qf_Search_refresh");
$this->waitForAjaxContent();
$this->multiselect2("membership_status_id", array("New"));
$this->click('_qf_Search_refresh');
$this->waitForAjaxContent();
- $this->waitForText('search-status', "1 Result");
+ $this->assertElementContainsText("xpath=//div[@id='search-status']/table/tbody/tr[1]/td", "1 Result");
}
}