Webtest fir for test
[civicrm-core.git] / tests / phpunit / WebTest / Contact / AddressParsingTest.php
index 82bfc80cec6ff12ace257cc17fc2f565873a2669..e1a5551b428edbc60fcbc1d48586a62d8b58a568 100644 (file)
@@ -121,7 +121,9 @@ class WebTest_Contact_AddressParsingTest extends CiviSeleniumTestCase {
       $this->waitForElementPresent("address_{$i}_street_address");
       $address[$i] = $location[$this->getSelectedLabel("address_{$i}_location_type_id")];
       // Open "Edit Address Elements"
-      $this->click("//table[@id='address_{$i}']//a[text()='Edit Address Elements']");
+      $this->waitForElementPresent('addressBlockId');
+      $this->click('addressBlockId');
+      $this->click("//table[@id='address_table_{$i}']//a[text()='Edit Address Elements']");
     }
 
     //verify all the address fields were parsed correctly