Overview | Package | Class | Use | Tree | Deprecated | Index | Help
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD

## com.thoughtworks.selenium.condition
Class Text

    java.lang.Object
      com.thoughtworks.selenium.condition.Condition
          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`

Overview | Package | Class | Use | Tree | Deprecated | Index | Help
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD

Copyright © 2009. All Rights Reserved.