| |
|
| com.canoo.webtest.steps.request.AbstractTargetAction com.canoo.webtest.steps.request.AbstractIdOrLabelTarget com.canoo.webtest.steps.request.ClickButton
ClickButton | public class ClickButton extends AbstractIdOrLabelTarget (Code) | | Provides the ability to click on a submit button.
author: unknown author: Marc Guillemot author: Paul King author: Denis N. Antonioli |
addText | public void addText(String text)(Code) | | Called by Ant to set the text nested between opening and closing tags.
Parameters: text - the text to set |
checkFoundElement | ClickableElement checkFoundElement(HtmlElement elt) throws StepFailedException(Code) | | Checks that the element is of the desired html type and has the right name and label (if needed)
Parameters: elt - the button to check the button if ok, null otherwise |
findButton | ClickableElement findButton(HtmlForm form)(Code) | | Looks for the first button (that may be an input of type submit, image or button or a "normal" button)
in the given form corresponding to the criterias
Parameters: form - the form in which the button should be searched the button, null if not found |
findClickableElementByAttribute | protected ClickableElement findClickableElementByAttribute(HtmlPage page)(Code) | | Finds the button in the page according to the properties set on this step
Parameters: page - the page to search in the button, null if not found |
getLogMessageForTarget | protected String getLogMessageForTarget()(Code) | | |
isImageButton | protected boolean isImageButton()(Code) | | |
setFieldIndex | public void setFieldIndex(String index)(Code) | | Sets the index of the button to click (starting with 0) within the buttons
identified with the other criteria.
Parameters: index - the new value |
setIndex | public void setIndex(int index)(Code) | | |
verifyParameters | protected void verifyParameters()(Code) | | |
|
|
|