getModule('\Helper\Select2'); $select2->openSelect2($selector); $select2->selectOptionForSelect2($selector, $option, $timeout); $select2->closeSelect2($selector); } /** * Imposta il valore di un select gestito dal framework Select2. * * @param $selector * @param $option * @param int $timeout seconds. Default to 1 */ public function select2ajax($selector, $option) { $select2 = $this->getModule('\Helper\Select2Ajax'); $select2->selectOptionForSelect2($selector, $option, $timeout); } protected function getAcceptanceModule() { if (!$this->hasModule('WebDriver')) { throw new \Exception('You must enable the WebDriver module', 1); } return $this->getModule('WebDriver'); } }