Constructor and Description |
---|
Assert() |
Modifier and Type | Method and Description |
---|---|
static boolean |
hasChild(org.openqa.selenium.WebElement webElement,
org.openqa.selenium.By by)
Returns true if corresponding element is found under web element.
|
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 Assert()
public static boolean hasElement(org.openqa.selenium.By by)
public static boolean hasChild(org.openqa.selenium.WebElement webElement, 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 © 2018 Nuxeo. All rights reserved.