else {
$this->click("xpath=id('ltype')/div/table/tbody/tr/td[1][text()='$financialType[oldname]']/../td[7]/span/a[text()='Edit']");
}
- $this->waitForPageToLoad($this->getTimeoutMsec());
+ $this->waitForElementPresent("name");
$this->type('name', $financialType['name']);
if ($option == 'new') {
$this->type('description', $financialType['name'] . ' description');
$this->select("preferred_language", "value=fr_FR");
//Notes section
- $this->click("notesBlock");
+ $this->clickAt("xpath=//div[text()='
+
+ Notes
+ ']");
$this->waitForElementPresent("subject");
$this->type("subject", "Grant's note");
$this->type("note", "This is a household contact webtest note.");
// select group
- $this->select("crmasmSelect0", "label=$groupName");
+ $this->clickAt("xpath=//div[text()='Tags and Groups']");
+ $this->select("group", "label=$groupName");
//tags section
$this->click("tag[{$this->webtestGetValidEntityID('Tag')}]");
//advanced search by selecting the contactType
$this->openCiviPage("contact/search/advanced", "reset=1");
if (isset($contactType)) {
- $this->select("id=crmasmSelect0", "value=$contactType");
+ $this->select("id=contact_type", "value=$contactType");
}
if (substr($field, 0, 5) == 'note_') {
$this->click("notes");
$this->openCiviPage("admin/price", "reset=1");
// Use the price set id ($sid) to pick the correct row
- $this->clickLink("css=tr#row_{$sid} a[title='View and Edit Price Fields']", 'Link=Add Price Field');
+ $this->clickLink("//*[@id='price_set-{$sid}']/td[4]/span[1]/a[1]", 'Link=Add Price Field');
// Check for expected price set field strings
$this->assertStringsPresent($validateStrings);
}