public class Assert extends Object
Constructor and Description |
---|
Assert() |
Modifier and Type | Method and Description |
---|---|
static boolean |
hasElement(org.openqa.selenium.By by)
Returns true if corresponding element is found in the test page.
|
static boolean |
isTextPresent(org.openqa.selenium.By by,
String text)
Returns true if
text is present in the element retrieved with the given method. |
static boolean |
isTextPresent(org.openqa.selenium.WebElement element,
String text)
Returns true if
text is present in the given element. |
public static boolean hasElement(org.openqa.selenium.By by)
public static boolean isTextPresent(org.openqa.selenium.By by, String text)
text
is present in the element retrieved with the given method.public static boolean isTextPresent(org.openqa.selenium.WebElement element, String text)
text
is present in the given element.Copyright © 2015 Nuxeo SA. All rights reserved.