src/ElementResolver.php
protected function findButtonByValue($button)
    {
        foreach ($this->all('input[type=submit]') as $element) {
            if ($element->getAttribute('value') === $button) {
                return $element;
            }
        }
    }
protected function findButtonByValue($button)
    {
        foreach ($this->all('input[type=submit]') as $element) {
            if ($element->getAttribute('value') === $button) {
                return $element;
            }
        }
    }
protected function findButtonByValue ( $ button ) { foreach ( $ this -> all ( 'input[type=submit]' ) as $ element ) { if ( $ element -> getAttribute ( 'value' ) === $ button ) { return $ element ; } } }
Resolve the element for a given button by value.

@param  string  $button
@return \Facebook\WebDriver\Remote\RemoteWebElement|null
Resolve the element for a given button by value .