src/Context/Select2Context.php
public function iFillInSelect2InputWithAndSelect($field, $value, $entry)
    {
        $page = $this->getSession()->getPage();

        $this->openField($page, $field);
        $this->fillSearchField($page, $field, $value);
        $this->selectValue($page, $field, $entry, $this->timeout);
    }
public function iFillInSelect2InputWithAndSelect($field, $value, $entry)
    {
        $page = $this->getSession()->getPage();

        $this->openField($page, $field);
        $this->fillSearchField($page, $field, $value);
        $this->selectValue($page, $field, $entry, $this->timeout);
    }
public function iFillInSelect2InputWithAndSelect ( $ field , $ value , $ entry ) { $ page = $ this -> getSession ( ) -> getPage ( ) ; $ this -> openField ( $ page , $ field ) ; $ this -> fillSearchField ( $ page , $ field , $ value ) ; $ this -> selectValue ( $ page , $ field , $ entry , $ this -> timeout ) ; }
Fill Select2 input field and select a value

@When /^(?:|I )fill in select2 input "(?P<field>(?:[^"]|\\")*)" with "(?P<value>(?:[^"]|\\")*)" and select "(?P<entry>(?:[^"]|\\")*)"$/
Fill Select2 input field and select a value