public function clickImageByName($name, $x = 1, $y = 1, $additional = false)
    {
        if (! ($form = $this->page->getFormByImage(new SelectByName($name)))) {
            return false;
        }
        $success = $this->load(
                $form->getAction(),
                $form->submitImage(new SelectByName($name), $x, $y, $additional));

        return ($success ? $this->getContent() : $success);
    }
public function clickImageByName($name, $x = 1, $y = 1, $additional = false)
    {
        if (! ($form = $this->page->getFormByImage(new SelectByName($name)))) {
            return false;
        }
        $success = $this->load(
                $form->getAction(),
                $form->submitImage(new SelectByName($name), $x, $y, $additional));

        return ($success ? $this->getContent() : $success);
    }
public function clickImageByName ( $ name , $ x = 1 , $ y = 1 , $ additional = false ) { if ( ! ( $ form = $ this -> page -> getFormByImage ( new SelectByName ( $ name ) ) ) ) { return false ; } $ success = $ this -> load ( $ form -> getAction ( ) , $ form -> submitImage ( new SelectByName ( $ name ) , $ x , $ y , $ additional ) ) ; return ( $ success ? $ this -> getContent ( ) : $ success ) ; }
Clicks the submit image by the name.
Usually the alt tag or the nearest equivalent.
The owning form will be submitted by this.
Clicking outside of the boundary of the coordinates will result in a failure.

@param string $name     Name attribute of button.
@param int $x       X-coordinate of imaginary click.
@param int $y       Y-coordinate of imaginary click.
@param hash $additional Additional form data.

@return string/boolean  Page on success.
Clicks the submit image by the name . Usually the alt tag or the nearest equivalent . The owning form will be submitted by this . Clicking outside of the boundary of the coordinates will result in a failure .