/** * Performs the action associated with clicking this button after running any 'onClick' script. * For a submit button this typically submits the form. */ public void click() throws IOException, SAXException { doOnClickSequence(0,0); }
/** * Performs the action associated with clicking this button after running any 'onClick' script. * For a submit button this typically submits the form. */ public void click() throws IOException, SAXException { doOnClickSequence(0,0); }
/** * Performs the action associated with clicking this button after running any 'onClick' script. * For a submit button this typically submits the form. */ public void click() throws IOException, SAXException { doOnClickSequence(0,0); }
/** * Performs the action associated with clicking this button after running any 'onClick' script. * For a submit button this typically submits the form. * * @since 1.6 */ public void click( int x, int y ) throws IOException, SAXException { if (!isImageButton()) throw new IllegalStateException( "May only specify positions for an image button" ); doOnClickSequence(x,y); }
/** * Submits this form using the web client from which it was originally obtained. * Will usually return the result of that submission; however, if the submit button's 'onclick' * or the form's 'onsubmit' event is triggered and * inhibits the submission, will return the updated contents of the frame containing this form. * @since 1.6 **/ public WebResponse submit( SubmitButton button, int x, int y ) throws IOException, SAXException { WebResponse result=null; if (button == null) throw new IllegalSubmitButtonException( "?", "?" ); button.doOnClickSequence(x, y); result=getCurrentFrameContents(); return result; }