@PublicApi public final class Check extends Object
| Modifier and Type | Method and Description |
|---|---|
static boolean |
elementExists(org.openqa.selenium.By by,
org.openqa.selenium.SearchContext el)
Checks that an element that matches the by param exists within another element.
|
static boolean |
elementIsVisible(org.openqa.selenium.By by,
org.openqa.selenium.SearchContext context) |
static boolean |
elementsAreVisible(org.openqa.selenium.By by,
org.openqa.selenium.SearchContext context) |
static boolean |
hasClass(String className,
org.openqa.selenium.WebElement element)
Checks to see if a specified element contains a specific class of not.
|
public static boolean elementExists(org.openqa.selenium.By by,
org.openqa.selenium.SearchContext el)
public static boolean elementIsVisible(org.openqa.selenium.By by,
org.openqa.selenium.SearchContext context)
public static boolean elementsAreVisible(org.openqa.selenium.By by,
org.openqa.selenium.SearchContext context)
public static boolean hasClass(@Nonnull String className, @Nonnull org.openqa.selenium.WebElement element)
className - CSS class name to check forelement - element to checktrue, if element has CSS class with given classNameElements.getCssClasses(String),
Elements.hasCssClass(String, String)Copyright © 2015 Atlassian. All rights reserved.