$this->type("petition_title", $title);
$this->click("xpath=//div[@class='crm-accordion-body']/table/tbody/tr[2]/td/a[text()='Search']");
- $this->waitForElementPresent("xpath=//div[@class='dataTables_wrapper no-footer']/table/tbody/tr/td[10]/span[2][text()='more']");
- $this->click("xpath=//div[@class='dataTables_wrapper no-footer']/table/tbody/tr/td[10]/span[2][text()='more']/ul/li[3]/a[text()='Signatures']");
+ $this->waitForElementPresent("xpath=//table[@class='petitions dataTable no-footer']/tbody/tr/td[10]/span[2][text()='more']");
+ $this->click("xpath=//table[@class='petitions dataTable no-footer']/tbody/tr/td[10]/span[2][text()='more']/ul/li[3]/a[text()='Signatures']");
$this->waitForPageToLoad($this->getTimeoutMsec());
// verify tabular data
$this->waitForElementPresent("_qf_PCP_refresh");
$id = explode('id=', $this->getAttribute("xpath=//div[@id='option11_wrapper']/table[@id='option11']/tbody//tr/td/a[text()='$pcpTitle']@href"));
$pcpUrl = "civicrm/pcp/info?reset=1&id=$id[1]";
- $this->click("xpath=//div[@id='option11_wrapper']/table[@id='option11']/tbody//tr/td/a[text()='$pcpTitle']/../../td[7]/span/a[text()='Approve']");
+ $this->click("xpath=//div[@class='dataTables_wrapper no-footer']/table/tbody//tr/td/a[text()='$pcpTitle']/../../td[7]/span[1]/a[2][text()='Approve']");
$this->waitForPageToLoad($this->getTimeoutMsec());
$this->waitForElementPresent("xpath=//table[@class='contact-activity-selector-activity dataTable no-footer']/tbody/tr/td[7][text()='Completed']");
//add a case
+ $this->waitForAjaxContent();
$this->click("xpath=//li[@id='tab_case']/a");
$this->waitForElementPresent("xpath=//div[@class='view-content']//div[@class='action-link']/a");
$this->click("xpath=//div[@class='view-content']//div[@class='action-link']/a");