net.sf.jameleon.plugin.selenium.tags
Class SeleniumClickAtTag

java.lang.Object
  extended by org.apache.commons.jelly.TagSupport
      extended by net.sf.jameleon.LocationAwareTagSupport
          extended by net.sf.jameleon.JameleonTagSupport
              extended by net.sf.jameleon.function.FunctionTag
                  extended by net.sf.jameleon.plugin.selenium.SeleniumFunctionTag
                      extended by net.sf.jameleon.plugin.selenium.tags.AbstractSeleniumLocatorTag
                          extended by net.sf.jameleon.plugin.selenium.tags.SeleniumClickAtTag
All Implemented Interfaces:
BreakPoint, Attributable, Storable, DynaTag, LocationAware, Tag

public class SeleniumClickAtTag
extends AbstractSeleniumLocatorTag

Clicks on an HTML element. To click on a link with the text Link 1 at coordinates x=2 and y=3:


     <selenium-click-at
            functionId="Click on 'Link 1'"
            locator="link=Link 1"
            coordinates="2,3"
            />
 
To click on a submit button with the name submit_name:

     <selenium-click-at
            functionId="Click the submit button named 'submit_name'"
            coordinates="3,4"
            locator="submit_name" />
 
Refer to the Selenium javadocs for more information.

Tag Name: <selenium-click-at> Type: action

Field Summary
 String coordinates
          The coordinates at which to execute the click action (relative to the specified field.
protected  String waitForPageToLoad
          The max number of milliseconds to wait for the page to load
 
Fields inherited from class net.sf.jameleon.plugin.selenium.tags.AbstractSeleniumLocatorTag
locator
 
Fields inherited from class net.sf.jameleon.plugin.selenium.SeleniumFunctionTag
session, sessionTag
 
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
SeleniumClickAtTag()
           
 
Method Summary
 void testBlock()
           
 
Methods inherited from class net.sf.jameleon.plugin.selenium.SeleniumFunctionTag
setupEnvironment, 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 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
 

Field Detail

coordinates

public String coordinates
The coordinates at which to execute the click action (relative to the specified field. In the form of (x,y) -- 8,10 for instance. See the Selenium javadocs for more information.

This attribute is recognized by Jameleon
Required: true

waitForPageToLoad

protected String waitForPageToLoad
The max number of milliseconds to wait for the page to load

This attribute is recognized by Jameleon
Constructor Detail

SeleniumClickAtTag

public SeleniumClickAtTag()
Method Detail

testBlock

public void testBlock()
Overrides:
testBlock in class FunctionTag


Copyright © 2006-2008 Christian Hargraves. All Rights Reserved.