|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
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.watij.WatijFunctionTag net.sf.jameleon.plugin.watij.tags.AbstractWatijGetTag net.sf.jameleon.plugin.watij.tags.WatijImageTag
public class WatijImageTag
Gets an image on the page and stores in the context. An example of its use might be to click on an image found via its alt text of 'Find Pets':
Or maybe there is no alt text so something like XPath is more appropriate and you want a more specific context variable: See the javadocs on watij'sSymbolFactory
for a complete list of supported symbols.
Field Summary |
---|
Fields inherited from class net.sf.jameleon.plugin.watij.tags.AbstractWatijGetTag |
---|
contextVar, failOnNotExists, how, what |
Fields inherited from class net.sf.jameleon.plugin.watij.WatijFunctionTag |
---|
sessionTag, STORE_SOURCE_CONFIG_NAME, storeSourceOnStateChange |
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 | |
---|---|
WatijImageTag()
|
Method Summary | |
---|---|
HtmlElement |
getHtmlElement(Symbol how,
String what)
Gets the HtmlElement of interest. |
String |
getTagName()
The HTML Element name this tag is used to get. |
Methods inherited from class net.sf.jameleon.plugin.watij.tags.AbstractWatijGetTag |
---|
getHtmlElement, getPrefixMsg, testBlock |
Methods inherited from class net.sf.jameleon.plugin.watij.WatijFunctionTag |
---|
getParentBrowser, getSymbolFromString, ie, setCurrentIE, setupEnvironment, store |
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 WatijImageTag()
Method Detail |
---|
public HtmlElement getHtmlElement(Symbol how, String what) throws Exception
AbstractWatijGetTag
getHtmlElement
in class AbstractWatijGetTag
how
- - How to search for the elementwhat
- - What to search for.
Exception
public String getTagName()
AbstractWatijGetTag
img tag
getTagName
in class AbstractWatijGetTag
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |