| com.canoo.webtest.steps.Step com.canoo.webtest.steps.AbstractBrowserAction com.canoo.webtest.steps.form.AbstractSetFieldStep
All known Subclasses: com.canoo.webtest.steps.form.AbstractSetNamedFieldStep, com.canoo.webtest.steps.form.SetFileField,
AbstractSetFieldStep | abstract public class AbstractSetFieldStep extends AbstractBrowserAction (Code) | | Abstract class for steps which update form fields.
This class handles the attributes name/formName, htmlId or xpath.
author: Marc Guillemot author: Paul King author: Denis N. Antonioli |
MESSAGE_ARGUMENT_MISSING | final public static String MESSAGE_ARGUMENT_MISSING(Code) | | |
MESSAGE_ARGUMENT_REDUNDANT | final public static String MESSAGE_ARGUMENT_REDUNDANT(Code) | | |
findFieldByLabel | HtmlElement findFieldByLabel(HtmlPage page, String labelText)(Code) | | Retrieves the (first) field associated with the label containing the provided text
Parameters: page - the page to search in Parameters: labelText - the text of the label the associated form field throws: StepFailedException - if no field is found |
findFields | protected List findFields(HtmlForm form)(Code) | | Finds all possible input fields. This is a generic implementation, sub-classes may want to take advantage
of more specific functions.
Parameters: form - The form to search. A list of candidate fields. |
findForm | abstract protected HtmlForm findForm()(Code) | | Finds the relevant form.
The found form. |
selectField | public static HtmlElement selectField(List fieldList, String indexStr, Step step)(Code) | | Finds the desired field by selecting either a specific field designated by
indexStr or the first one if indexStr is left blank
Parameters: fieldList - A list of HtmlElement fields. Parameters: indexStr - The index of the desired field. Parameters: step - The calling step, for exception. The selected field |
setField | abstract protected void setField(HtmlElement field) throws IOException(Code) | | Sets a field according to the step.
It is up to the step's implementation to decide how to set the step.
Parameters: field - The field to set. |
setFieldIndex | public void setFieldIndex(String index)(Code) | | Set the index.
Parameters: index - |
setForLabel | public void setForLabel(String text)(Code) | | Set the text of the label associated with the field to set.
Parameters: text - the label text |
setFormName | public void setFormName(String formName)(Code) | | Set the form name.
Parameters: formName - |
setHtmlId | public void setHtmlId(String htmlId)(Code) | | Set the html id.
Parameters: htmlId - |
setName | public void setName(String name)(Code) | | Set the name.
Parameters: name - |
setXpath | public void setXpath(String xpath)(Code) | | Set the xpath.
Parameters: xpath - |
verifyParameters | protected void verifyParameters()(Code) | | |
Methods inherited from com.canoo.webtest.steps.Step | protected void addComputedParameters(Map map)(Code)(Java Doc) public Object clone() throws CloneNotSupportedException(Code)(Java Doc) abstract public void doExecute() throws Exception(Code)(Java Doc) protected void emptyParamCheck(String param, String paramName)(Code)(Java Doc) public void execute()(Code)(Java Doc) protected Map getComputedParameters()(Code)(Java Doc) public Context getContext()(Code)(Java Doc) protected String getDefaultPropertyType()(Code)(Java Doc) public String getDescription(String prefix, String suffix)(Code)(Java Doc) public long getDuration()(Code)(Java Doc) public Map getParameterDictionary()(Code)(Java Doc) protected String getStepLabel()(Code)(Java Doc) protected static IStringVerifier getVerifier(boolean useRegex)(Code)(Java Doc) public Map getWebtestProperties()(Code)(Java Doc) public Map getWebtestProperties(String propertyType)(Code)(Java Doc) public String getWebtestProperty(String name)(Code)(Java Doc) public String getWebtestProperty(String name, String propertyType)(Code)(Java Doc) protected void handleException(Throwable t)(Code)(Java Doc) public boolean hasDescription()(Code)(Java Doc) protected void integerParamCheck(String param, String paramName, boolean nonNegative)(Code)(Java Doc) public boolean isCompleted()(Code)(Java Doc) public boolean isStarted()(Code)(Java Doc) public boolean isSuccessful()(Code)(Java Doc) public void notifyCompleted()(Code)(Java Doc) public void notifyStarted()(Code)(Java Doc) protected void notifyStepResultsListeners()(Code)(Java Doc) public void notifySuccess()(Code)(Java Doc) protected void nullParamCheck(Object param, String paramName)(Code)(Java Doc) protected void nullResponseCheck()(Code)(Java Doc) protected void optionalIntegerParamCheck(String param, String paramName, boolean nonNegative)(Code)(Java Doc) protected void paramCheck(boolean condition, String message)(Code)(Java Doc) protected void positiveOrZeroParamCheck(int value, String paramName)(Code)(Java Doc) public void setStepid(String description)(Code)(Java Doc) public void setWebtestProperty(String name, String value)(Code)(Java Doc) public void setWebtestProperty(String name, String value, String propertyType)(Code)(Java Doc) public String toString()(Code)(Java Doc) protected void verifyParameters()(Code)(Java Doc)
|
|
|