From 702171504ea97ea6cc43852743d81c0b644012da Mon Sep 17 00:00:00 2001 From: Rohan Katkar Date: Tue, 21 Oct 2014 14:14:38 +0530 Subject: [PATCH] Fix for webtest: WebTest_Import_ContactSubtypeTest::testHouseholdSubtypeImport --- tests/phpunit/WebTest/Import/ImportCiviSeleniumTestCase.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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']); } -- 2.25.1