| com.canoo.webtest.steps.request.AbstractTargetAction com.canoo.webtest.steps.request.AbstractIdOrLabelTarget
All known Subclasses: com.canoo.webtest.steps.request.ClickButton, com.canoo.webtest.steps.request.ClickLink,
AbstractIdOrLabelTarget | abstract public class AbstractIdOrLabelTarget extends AbstractTargetAction (Code) | | author: Unknown author: Marc Guillemot author: Denis N. Antonioli |
checkFoundElement | abstract 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 element to check the element if ok, null if the elment has the correct type has wrong attribute. throws: StepFailedException - If the element has a wrong type. |
findClickableElement | protected ClickableElement findClickableElement(HtmlPage page)(Code) | | Finds the element in the page according to the properties set on this step
Parameters: page - the page to search in the clickable element, null if not found |
findClickableElementByAttribute | abstract protected ClickableElement findClickableElementByAttribute(HtmlPage page)(Code) | | |
findClickableElementById | ClickableElement findClickableElementById(HtmlPage page)(Code) | | Finds the button with the configured id.
Parameters: page - the page to search in the clickable element, null if no button with this id is foundor if label and name don't match |
findClickableElementByXPath | ClickableElement findClickableElementByXPath(HtmlPage page)(Code) | | Finds the button with the configured xpath.
Parameters: page - the page to search in the button, null if no button with this xpath is foundor if label and name don't match |
setHtmlId | public void setHtmlId(String htmlId)(Code) | | Parameters: htmlId - The HtmlId to set. |
setLabel | public void setLabel(String newLabel)(Code) | | Parameters: newLabel - The Label to set. |
setXpath | public void setXpath(String xpath)(Code) | | Parameters: xpath - The xpath to set. |
|
|