public final class FormInputValueHelper extends Object
| Constructor and Description |
|---|
FormInputValueHelper(InputSpecification inputSpecification,
boolean randomInput) |
| Modifier and Type | Method and Description |
|---|---|
Node |
getBelongingNode(FormInput input,
Document dom) |
List<CandidateElement> |
getCandidateElementsForInputs(EmbeddedBrowser browser,
Element sourceElement,
EventableCondition eventableCondition) |
FormInput |
getFormInputWithDefaultValue(EmbeddedBrowser browser,
Node element) |
FormInput |
getFormInputWithIndexValue(EmbeddedBrowser browser,
Node element,
int indexValue) |
public FormInputValueHelper(InputSpecification inputSpecification, boolean randomInput)
inputSpecification - the input specification.randomInput - if random data should be used on the input fields.public List<CandidateElement> getCandidateElementsForInputs(EmbeddedBrowser browser, Element sourceElement, EventableCondition eventableCondition)
browser - the browser instancesourceElement - the form elementseventableCondition - the belonging eventable condition for sourceElementpublic Node getBelongingNode(FormInput input, Document dom) throws XPathExpressionException
input - the form inputdom - the documentXPathExpressionException - if a failure is occurred.public FormInput getFormInputWithDefaultValue(EmbeddedBrowser browser, Node element)
browser - the current browser instanceelement - the element in the dompublic FormInput getFormInputWithIndexValue(EmbeddedBrowser browser, Node element, int indexValue)
browser - the current browser instanceelement - the element in the domindexValue - the i-th specified value. if i>#values, first value is usedCopyright © 2007-2013. All Rights Reserved.