com.canoo.webtest.steps.form .AbstractSetFieldStep com.canoo.webtest.steps.form .AbstractSetNamedFieldStep com.canoo.webtest.steps.form .SetSelectField SetSelectField public class SetSelectField extends AbstractSetNamedFieldStep (Code) Selects one or many elements of a select field ( <select name="foo">...
</select>)
author: Marc Guillemot
AT_MOST_ONE_VALUE_TEXT_OPTIONINDEX final static String AT_MOST_ONE_VALUE_TEXT_OPTIONINDEX (Code)
MESSAGE_MISSING_OPTION_IDENTIFIER final static String MESSAGE_MISSING_OPTION_IDENTIFIER (Code)
findFields protected List findFields(HtmlForm form)(Code) Finds all relevant fields with the given name in the form.
Parameters: form - The form to search The list of fields with the given name
findForm protected HtmlForm findForm()(Code)
findMatchingOption HtmlOption findMatchingOption(HtmlSelect select) throws StepExecutionException (Code) Selects the option specified by value, text or index and returns it.
Parameters: select - the containing the option the selected option
isMultiSelect public boolean isMultiSelect()(Code) Gets the value of the multiSelect attribute. The value is only available after the parameter has been validated.
true
if multiple selection is allowed
isRegex public boolean isRegex()(Code) Gets the value of the regex attribute. The value is only available after the parameter has been validated.
true
if SetSelectField.getText() is a regular expression
maybeTarget protected void maybeTarget(Page page, HtmlSelect select, HtmlOption option)(Code)
setField protected void setField(HtmlElement elt)(Code)
setIndex public void setIndex(String index)(Code) Parameters: index -
setMultiselect public void setMultiselect(String multiSelect)(Code)
setOptionIndex public void setOptionIndex(String index)(Code) Parameters: index - The new index value
setPassword public void setPassword(String password)(Code) Parameters: password -
setSaveResponse public void setSaveResponse(String response)(Code)
setUserName public void setUserName(String userName)(Code) Parameters: userName -
setValue public void setValue(String value)(Code) Set the value
Parameters: value -
updateOption void updateOption(HtmlSelect select, HtmlOption option) (Code)
verifyParameters protected void verifyParameters()(Code)
Fields inherited from com.canoo.webtest.steps.form.AbstractSetNamedFieldStep final protected static String DEFAULT_VALUE_NULL_MESSAGE(Code) (Java Doc)