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

        $this->openField($page, $field);
        $this->selectValue($page, $field, $value, $time);
    }
public function iFillInSelect2FieldWaitUntilResultsAreLoaded($field, $value, $time)
    {
        $page = $this->getSession()->getPage();

        $this->openField($page, $field);
        $this->selectValue($page, $field, $value, $time);
    }
public function iFillInSelect2FieldWaitUntilResultsAreLoaded ( $ field , $ value , $ time ) { $ page = $ this -> getSession ( ) -> getPage ( ) ; $ this -> openField ( $ page , $ field ) ; $ this -> selectValue ( $ page , $ field , $ value , $ time ) ; }
Fills in Select2 field with specified and wait for results

@When /^(?:|I )fill in select2 "(?P<field>(?:[^"]|\\")*)" with "(?P<value>(?:[^"]|\\")*)" and wait (?P<time>(?:[^"]|\\")*) seconds until results are loaded$/
@When /^(?:|I )fill in select2 "(?P<value>(?:[^"]|\\")*)" for "(?P<field>(?:[^"]|\\")*)" and wait (?P<time>(?:[^"]|\\")*) seconds until results are loaded$/
Fills in Select2 field with specified and wait for results