src/ElementResolver.php
/**
     * Resolve the element for a given select "field".
     *
     * @param  string  $field
     * @return \Facebook\WebDriver\Remote\RemoteWebElement
     */
Resolve the element for a given select "field".
Resolve the element for a given select " field " .
public function resolveForSelection($field)
    {
        if (! is_null($element = $this->findById($field))) {
            return $element;
        }
        return $this->firstOrFail([
            $field, "select[name={$field}]"
        ]);
    }
public function resolveForSelection ( $ field ) { if ( ! is_null ( $ element = $ this -> findById ( $ field ) ) ) { return $ element ; } return $ this -> firstOrFail ( [ $ field , " select[name= { $ field } ] " ] ) ; }
Resolve the element for a given select "field".
Resolve the element for a given select " field " .