Webtest fixes
[civicrm-core.git] / tests / phpunit / WebTest / Contact / AddTest.php
index 519273a768eb5c07170ed683abe7c45aac3b4b5c..66eeca074b321f59e2a1e8a2fc4bb8ad6ec1108f 100644 (file)
@@ -257,13 +257,17 @@ class WebTest_Contact_AddTest extends CiviSeleniumTestCase {
     $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')}]");