public abstract class AbstractIdOrLabelTarget extends AbstractTargetAction
DEFAULT_DESCRIPTION, ELEMENT_ATTRIBUTE_ID, ELEMENT_ATTRIBUTE_NAME, PROPERTY_TYPE_ANT, PROPERTY_TYPE_ANT_STRICT, PROPERTY_TYPE_DEFAULT, PROPERTY_TYPE_DYNAMIC
description, location, project
Constructor and Description |
---|
AbstractIdOrLabelTarget() |
Modifier and Type | Method and Description |
---|---|
protected com.gargoylesoftware.htmlunit.html.HtmlElement |
findClickableElement(com.gargoylesoftware.htmlunit.html.HtmlPage page)
Finds the element in the page according to the properties set on this step
|
protected abstract com.gargoylesoftware.htmlunit.html.HtmlElement |
findClickableElementByAttribute(com.gargoylesoftware.htmlunit.html.HtmlPage page) |
java.lang.String |
getHtmlId() |
java.lang.String |
getLabel() |
java.lang.String |
getXpath() |
void |
setHtmlId(java.lang.String htmlId) |
void |
setLabel(java.lang.String newLabel) |
void |
setXpath(java.lang.String xpath) |
doExecute, findTarget, getLogMessageForTarget, getPassword, getResponse, getSave, getUsername, setPassword, setUsername
setSave, setSavePrefix, setSaveResponse
addComputedParameters, clone, emptyParamCheck, execute, getComputedParameters, getContext, getDefaultPropertyType, getDescription, getDuration, getParameterDictionary, getStepLabel, getVerifier, getWebtestProperties, getWebtestProperties, getWebtestProperty, getWebtestProperty, handleException, hasDescription, integerParamCheck, isCompleted, isPerformingAction, isStarted, isSuccessful, notifyCompleted, notifyStarted, notifyStepResultsListeners, notifySuccess, nullParamCheck, nullResponseCheck, optionalIntegerParamCheck, paramCheck, positiveOrZeroParamCheck, setStepid, setWebtestProperty, setWebtestProperty, toString, verifyParameters
bindToOwner, getOwningTarget, getRuntimeConfigurableWrapper, getTaskName, getTaskType, getWrapper, handleErrorFlush, handleErrorOutput, handleFlush, handleInput, handleOutput, init, isInvalid, log, log, log, log, maybeConfigure, perform, reconfigure, setOwningTarget, setRuntimeConfigurableWrapper, setTaskName, setTaskType
getDescription, getLocation, getProject, setDescription, setLocation, setProject
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
getTaskName
public void setLabel(java.lang.String newLabel)
newLabel
- The Label to set.public java.lang.String getLabel()
public void setHtmlId(java.lang.String htmlId)
htmlId
- The HtmlId to set.public java.lang.String getHtmlId()
public void setXpath(java.lang.String xpath)
xpath
- The xpath to set.public java.lang.String getXpath()
protected com.gargoylesoftware.htmlunit.html.HtmlElement findClickableElement(com.gargoylesoftware.htmlunit.html.HtmlPage page) throws javax.xml.xpath.XPathException
page
- the page to search innull
if not foundjavax.xml.xpath.XPathException
protected abstract com.gargoylesoftware.htmlunit.html.HtmlElement findClickableElementByAttribute(com.gargoylesoftware.htmlunit.html.HtmlPage page)