|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.commons.jelly.TagSupport
net.sf.jameleon.LocationAwareTagSupport
net.sf.jameleon.JameleonTagSupport
net.sf.jameleon.function.FunctionTag
net.sf.jameleon.plugin.htmlunit.HtmlUnitFunctionTag
net.sf.jameleon.plugin.htmlunit.tags.AbstractHtmlUnitSetFormFieldTag
net.sf.jameleon.plugin.htmlunit.tags.AbstractHtmlUnitSetInputFieldTag
net.sf.jameleon.plugin.htmlunit.tags.HtmlUnitSetFileFieldTag
public class HtmlUnitSetFileFieldTag
A tag which sets a file field to the provided value.
To use XPath to set a file field named testFileField that exists in a form with the id testform:
To use XPath to set a file field named testFileField that doesn't exist in a form:<htmlunit-set-file-field functionId="Set the testFileField field to '/tmp/files/my_file.tar.gz'" xpath="//form[@id='testform']/input[@name='testFileField']" value="/tmp/files/my_file.tar.gz"/>
<htmlunit-set-text-field functionId="Set the testFileField field to 'some value' and set it against type just for grins." xpath="//input[@name='testFileField' and @type='file']" value="some value"/>
| Field Summary |
|---|
| Fields inherited from class net.sf.jameleon.plugin.htmlunit.tags.AbstractHtmlUnitSetFormFieldTag |
|---|
fieldName, form, value, xpath |
| Fields inherited from class net.sf.jameleon.plugin.htmlunit.HtmlUnitFunctionTag |
|---|
helper, sessionTag, workingForm |
| Fields inherited from class net.sf.jameleon.function.FunctionTag |
|---|
addt, breakPoint, expectException, expectFailure, fResults, functionDelay, functionId, lastFileWritten, log, NO_DELAY, params, postcondition, precondition, st, state, tct, vpt |
| Fields inherited from class net.sf.jameleon.JameleonTagSupport |
|---|
attributes, broker, contextVars, fp, unsupportedAttributes |
| Fields inherited from class net.sf.jameleon.LocationAwareTagSupport |
|---|
columnNumber, elementTagName, lineNumber, scriptFileName |
| Fields inherited from class org.apache.commons.jelly.TagSupport |
|---|
body, context, hasTrimmed, parent, shouldTrim |
| Constructor Summary | |
|---|---|
HtmlUnitSetFileFieldTag()
|
|
| Method Summary | |
|---|---|
protected String |
getInputType()
|
protected void |
setFieldValueInForm()
|
| Methods inherited from class net.sf.jameleon.plugin.htmlunit.tags.AbstractHtmlUnitSetInputFieldTag |
|---|
setFieldValueFoundByXPath, setInputFieldFoundByXPath |
| Methods inherited from class net.sf.jameleon.plugin.htmlunit.tags.AbstractHtmlUnitSetFormFieldTag |
|---|
getSubmitableElementByXPath, testBlock |
| Methods inherited from class net.sf.jameleon.JameleonTagSupport |
|---|
cleanVariablesInContext, createAttributes, describeAttributes, getAttributeBroker, getAttributes, getAttributeType, getClassAttributes, getFunctionalPoint, getUnsupportedAttributes, loadFunctionalPoint, resetFunctionalPoint, setAttribute, setVariableInContext, testForUnsupportedAttributesCaught |
| Methods inherited from class net.sf.jameleon.LocationAwareTagSupport |
|---|
getColumnNumber, getElementName, getFileName, getLineNumber, setColumnNumber, setElementName, setFileName, setLineNumber |
| Methods inherited from class org.apache.commons.jelly.TagSupport |
|---|
findAncestorWithClass, findAncestorWithClass, findAncestorWithClass, findAncestorWithClass, findAncestorWithClass, findAncestorWithClass, getBody, getBodyText, getBodyText, getContext, getParent, invokeBody, isEscapeText, isTrim, setBody, setContext, setEscapeText, setParent, setTrim, trimBody |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface org.apache.commons.jelly.Tag |
|---|
getBody, getContext, getParent, invokeBody, setBody, setContext, setParent |
| Constructor Detail |
|---|
public HtmlUnitSetFileFieldTag()
| Method Detail |
|---|
protected String getInputType()
getInputType in class AbstractHtmlUnitSetInputFieldTagprotected void setFieldValueInForm()
setFieldValueInForm in class AbstractHtmlUnitSetFormFieldTag
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||