src/Concerns/InteractsWithPages.php
protected function fillForm($buttonText, $inputs = [])
    {
        if (! is_string($buttonText)) {
            $inputs = $buttonText;

            $buttonText = null;
        }

        return $this->getForm($buttonText)->setValues($inputs);
    }
protected function fillForm($buttonText, $inputs = [])
    {
        if (! is_string($buttonText)) {
            $inputs = $buttonText;

            $buttonText = null;
        }

        return $this->getForm($buttonText)->setValues($inputs);
    }
protected function fillForm ( $ buttonText , $ inputs = [ ] ) { if ( ! is_string ( $ buttonText ) ) { $ inputs = $ buttonText ; $ buttonText = null ; } return $ this -> getForm ( $ buttonText ) -> setValues ( $ inputs ) ; }
Fill the form with the given data.

@param  string  $buttonText
@param  array  $inputs
@return \Symfony\Component\DomCrawler\Form
Fill the form with the given data .