org.seleniuminspector
Class ElementByReferenceInspector

java.lang.Object
  extended by org.seleniuminspector.ElementInspector
      extended by org.seleniuminspector.ElementByReferenceInspector
Direct Known Subclasses:
InputInspector, LiInspector, TableInspector, TableRowInspector, TableSectionInspector, TextAreaInspector, UlInspector

public class ElementByReferenceInspector
extends ElementInspector

Inspects the same element as the associated element inspector. This class is mainly useful for extending by other specialized inspectors to provide a flexible way of referring to other elements.

See TableInspector as an example.


Constructor Summary
ElementByReferenceInspector(ElementInspector element)
           
 
Method Summary
 java.lang.String getElementReferenceExpression()
           
 java.lang.String toString()
           
 
Methods inherited from class org.seleniuminspector.ElementInspector
adaptColorString, adaptFontWeightString, asSeleniumLocator, assertAttribute, assertAttributeStartsWith, assertContainsText, assertElementExists, assertElementExists, assertExpressionEquals, assertExpressionEquals, assertExpressionEquals, assertExpressionEquals, assertExpressionStartsWith, assertHeight, assertHeight, assertNodeName, assertPosition, assertPosition, assertSize, assertSize, assertStyle, assertSubtext, assertText, assertVisible, assertWidth, assertWidth, attribute, calculateStyleProperty, childNodes, childNodesByName, className, click, clickAndWait, clickAndWait, doubleClick, dragAndDrop, elementExists, escapeStringForJS, escapeStringForJSAndQuote, evalBooleanExpression, evalExpression, evalIntExpression, evalSeleniumInspectorExpression, executeSeleniumCommand, fireEvent, fireEvent, firstChild, focus, getElementsByScript, getElementsByTagName, getSelenium, hasChildNodes, id, isCommentNode, isDocumentNode, isTextNode, isVisible, keyDown, keyDown, keyPress, keyPress, keyUp, keyUp, lastChild, mouseDown, mouseMove, mouseOut, mouseOver, mouseUp, nextSibling, nodeName, nodeValue, parentNode, position, previousSibling, rectangle, selectByLabel, selectOptions, setCursorPosition, size, sleep, subElement, text
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

ElementByReferenceInspector

public ElementByReferenceInspector(ElementInspector element)
Method Detail

getElementReferenceExpression

public java.lang.String getElementReferenceExpression()
Specified by:
getElementReferenceExpression in class ElementInspector
Returns:
expression that evaluates to the inspected element. This expression is evaluated by the Selenium.getEval method and it is executed in context of the "selenium" object, not the tested window. Use "window" to refer to the tested window.

toString

public java.lang.String toString()
Overrides:
toString in class ElementInspector


Copyright © 1998-2009 TeamDev Ltd. All Rights Reserved.