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(String expectedText)
Look for text anywhere on the page. |
Text(String expectedText,
String locator)
Look for text inside a given locator. |
Text
public Text(String expectedText)
- Look for text anywhere on the page.
- Parameters:
expectedText
- text we're looking for
Text
public Text(String expectedText,
String locator)
- Look for text inside a given locator.
- Parameters:
expectedText
- text we're looking forlocator
- Selenium locator
isTrue
public boolean isTrue(ConditionRunner.Context context)
- Specified by:
isTrue
in class Condition
Copyright © 2012. All Rights Reserved.