org.seleniuminspector
Class ElementByExpressionInspector

java.lang.Object
  extended by org.seleniuminspector.ElementInspector
      extended by org.seleniuminspector.ElementByExpressionInspector

public class ElementByExpressionInspector
extends ElementInspector

Defines an inspector for an element retrieved with an associated script. Note that like for Selenium.getEval method, the script runs in context of "selenium" object. Use "window" to refer to the tested window.


Constructor Summary
ElementByExpressionInspector(java.lang.String elementRetrievalExpression)
           
 
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

ElementByExpressionInspector

public ElementByExpressionInspector(java.lang.String elementRetrievalExpression)
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.