src/ElementResolver.php
protected function findButtonByName($button)
    {
        if (! is_null($element = $this->find("input[type=submit][name='{$button}']")) ||
            ! is_null($element = $this->find("input[type=button][value='{$button}']")) ||
            ! is_null($element = $this->find("button[name='{$button}']"))) {
            return $element;
        }
    }
protected function findButtonByName($button)
    {
        if (! is_null($element = $this->find("input[type=submit][name='{$button}']")) ||
            ! is_null($element = $this->find("input[type=button][value='{$button}']")) ||
            ! is_null($element = $this->find("button[name='{$button}']"))) {
            return $element;
        }
    }
protected function findButtonByName ( $ button ) { if ( ! is_null ( $ element = $ this -> find ( "input[type=submit][name='{$button}']" ) ) || ! is_null ( $ element = $ this -> find ( "input[type=button][value='{$button}']" ) ) || ! is_null ( $ element = $ this -> find ( "button[name='{$button}']" ) ) ) { return $ element ; } }
Resolve the element for a given button by name.

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