com.thoughtworks.selenium.condition
Class Text

java.lang.Object
  extended by com.thoughtworks.selenium.condition.Condition
      extended by com.thoughtworks.selenium.condition.Text

public class Text
extends Condition

Checks whether text exists either anywhere on the page, or inside a given locator.


Constructor Summary
Text(java.lang.String expectedText)
          Look for text anywhere on the page.
Text(java.lang.String expectedText, java.lang.String locator)
          Look for text inside a given locator.
 
Method Summary
 boolean isTrue(ConditionRunner.Context context)
           
 
Methods inherited from class com.thoughtworks.selenium.condition.Condition
getMessage, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

Text

public Text(java.lang.String expectedText)
Look for text anywhere on the page.

Parameters:
expectedText - text we're looking for

Text

public Text(java.lang.String expectedText,
            java.lang.String locator)
Look for text inside a given locator.

Parameters:
expectedText - text we're looking for
locator - Selenium locator
Method Detail

isTrue

public boolean isTrue(ConditionRunner.Context context)
Specified by:
isTrue in class Condition


Copyright © 2011. All Rights Reserved.