From: Rohan Katkar Date: Tue, 21 Oct 2014 08:44:38 +0000 (+0530) Subject: Fix for webtest: WebTest_Import_ContactSubtypeTest::testHouseholdSubtypeImport X-Git-Url: https://vcs.fsf.org/?a=commitdiff_plain;h=702171504ea97ea6cc43852743d81c0b644012da;p=civicrm-core.git Fix for webtest: WebTest_Import_ContactSubtypeTest::testHouseholdSubtypeImport --- diff --git a/tests/phpunit/WebTest/Import/ImportCiviSeleniumTestCase.php b/tests/phpunit/WebTest/Import/ImportCiviSeleniumTestCase.php index 7fb9f49ea7..1390995bfb 100644 --- a/tests/phpunit/WebTest/Import/ImportCiviSeleniumTestCase.php +++ b/tests/phpunit/WebTest/Import/ImportCiviSeleniumTestCase.php @@ -245,7 +245,7 @@ class ImportCiviSeleniumTestCase extends CiviSeleniumTestCase { // Select contact subtype if (isset($other['contactSubtype'])) { - $this->waitForElementPresent("css=#subType option[value={$other['contactSubtype']}]"); + $this->waitForElementPresent("xpath=//div[@id='common-form-controls']/table/tbody/tr[1]/td[2]/span"); $this->select('subType', $other['contactSubtype']); }