net.sf.jameleon.plugin.htmlunit.tags
Class HtmlUnitSetRadioButtonTag
java.lang.Object
org.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.AbstractHtmlUnitCheckFieldTag
net.sf.jameleon.plugin.htmlunit.tags.HtmlUnitSetRadioButtonTag
- All Implemented Interfaces:
- BreakPoint, Attributable, Storable, DynaTag, LocationAware, Tag
public class HtmlUnitSetRadioButtonTag
- extends AbstractHtmlUnitCheckFieldTag
This tag is used to set or unset checkboxes defined by a given XPath expression.
To use XPath to check a radio button named rb_1 that exists in a form with the name testform:
<htmlunit-set-radio-button
functionId="Check the radio button named rb_1"
xpath="//form[@name='testform']/input[@name='rb_1']"
checked="true"/>
To use XPath to uncheck a checkbox named cb_1 that exists in a form with the name testform:
<htmlunit-set-radio-button
functionId="Uncheck the radio button named rb_1"
xpath="//form[@name='testform']/input[@name='rb_1']"
checked="false"/>
To use the form and the field name to check a radio button named rb_1 that exists in a form with the name testform:
<htmlunit-set-radio-button
functionId="Check the radio button named rb_1"
form="testform"
fieldName="rb_1"
checked="true"/>
To use the form, field name and value to check a radio button named rb_1 with the value
rb_val1 that exists in a form with the name testform:
<htmlunit-set-radio-button
functionId="Check the radio button named rb_1"
form="testform"
fieldName="rb_1"
value="rb_val1"
checked="true"/>
Tag Name: <htmlunit-set-radio-button> Type: action
| 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 |
| Methods inherited from class net.sf.jameleon.plugin.htmlunit.HtmlUnitFunctionTag |
assertTextPresent, assertTextPresent, assertTextPresent, assertTextPresent, assertTitleEquals, assertTitleEquals, assertTitleEquals, assertTitleEquals, assertXPathMatches, assertXPathMatches, assertXPathMatches, assertXPathMatches, clickElementWithXPath, getHtmlElementByAttributeNameAndValue, getHtmlElementByXPath, getHtmlForm, getHtmlFormById, getHtmlFormByIndex, getHtmlFormByName, getHtmlFormByXPath, getWorkingForm, navigate, setCheckBox, setCheckBox, setFileField, setHiddenField, setHtmlInputValue, setHtmlInputValueByXPath, setPasswordField, setRadioButton, setSelectFieldByIndex, setSelectFieldByOptionText, setSelectFieldByValue, setSelectFieldByXPath, setTextArea, setTextField, setupEnvironment, setWorkingForm, setWorkingFormById, setWorkingFormByIndex, setWorkingFormByName, setWorkingFormByXPath, store |
| Methods inherited from class net.sf.jameleon.function.FunctionTag |
addParam, addRequiredAttribute, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertFalse, assertFalse, assertFalse, assertFalse, assertMethod, assertMethodWithLevel, assertNotNull, assertNotNull, assertNotNull, assertNotNull, assertNotSame, assertNotSame, assertNotSame, assertNotSame, assertNull, assertNull, assertNull, assertNull, assertRegexMatches, assertRegexMatches, assertRegexMatches, assertRegexMatches, assertSame, assertSame, assertSame, assertSame, assertTextContains, assertTextContains, assertTextContains, assertTextContains, assertTextEndsWith, assertTextEndsWith, assertTextEndsWith, assertTextEndsWith, assertTextStartsWith, assertTextStartsWith, assertTextStartsWith, assertTextStartsWith, assertTrue, assertTrue, assertTrue, assertTrue, checkParamTypes, cleanUp, cleanUpEnvironment, delay, delay, doTag, fail, fail, fail, fail, getFunctionId, getFunctionResults, getMatchingRegexText, getParam, getParamLength, getParams, getParentTags, getSessionTag, getStoreToFileName, getStringOrDefault, getTestCaseTag, getVariable, getVariableAsBoolean, getVariableAsList, getVariableAsString, isBreakPoint, isContextVariableNull, pluginTearDown, recordFunctionResult, regexMatches, removeFunctionResult, removeVariable, setDefaultVariableValue, setDefaultVariableValue, setExpectException, setExpectFailure, setFunctionDelay, setFunctionId, setup, setUpFunctionResults, setVariable, tearDown, traceMsg, validate |
| 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 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 |
HtmlUnitSetRadioButtonTag
public HtmlUnitSetRadioButtonTag()
checkFieldWithValue
protected void checkFieldWithValue(String fieldName,
String value,
boolean check)
- Specified by:
checkFieldWithValue in class AbstractHtmlUnitCheckFieldTag
checkField
protected void checkField(HtmlInput inputField,
boolean check)
- Specified by:
checkField in class AbstractHtmlUnitCheckFieldTag
getInputType
protected String getInputType()
- Specified by:
getInputType in class AbstractHtmlUnitSetInputFieldTag
Copyright © 2006-2008 Christian Hargraves. All Rights Reserved.