<?php
/*
+--------------------------------------------------------------------+
- | CiviCRM version 4.3 |
+ | CiviCRM version 4.5 |
+--------------------------------------------------------------------+
- | Copyright CiviCRM LLC (c) 2004-2013 |
+ | Copyright CiviCRM LLC (c) 2004-2014 |
+--------------------------------------------------------------------+
| This file is a part of CiviCRM. |
| |
}
// Submit form.
- $this->click('_qf_UploadFile_upload');
+ $this->click('_qf_DataSource_upload');
$this->waitForPageToLoad($this->getTimeoutMsec());
// Select matching field for cvs data.
$this->typeKeys("css=input#sort_name_navigation", $searchName);
// Wait for result list.
- $this->waitForElementPresent("css=div.ac_results-inner li");
+ $this->waitForElementPresent("css=ul.ui-autocomplete li");
// Visit contact summary page.
- $this->click("css=div.ac_results-inner li");
+ $this->click("css=ul.ui-autocomplete li");
$this->waitForPageToLoad($this->getTimeoutMsec());
// Get contact id from url.
- $matches = array();
- preg_match('/cid=([0-9]+)/', $this->getLocation(), $matches);
- $contactIds[] = $matches[1];
+ $contactIds[] = $this->urlArg('cid');
}
return $contactIds;