org.seleniuminspector
Class ElementByLocatorInspector

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

public class ElementByLocatorInspector
extends ElementInspector

Inspects an element by the specified Selenium locator.


Constructor Summary
ElementByLocatorInspector(java.lang.String locator)
           
 
Method Summary
 java.lang.String getElementReferenceExpression()
           
 java.lang.String getLocator()
           
 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

ElementByLocatorInspector

public ElementByLocatorInspector(java.lang.String locator)
Method Detail

getLocator

public java.lang.String getLocator()

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.