Class CSSClasses
java.lang.Object
net.serenitybdd.screenplay.playwright.questions.CSSClasses
Get CSS classes of an element or check if it has a specific class.
Sample usage:
List<String> classes = actor.asksFor(CSSClasses.of("#element"));
Boolean hasClass = actor.asksFor(CSSClasses.of("#element").contains("active"));
-
Method Summary
Modifier and TypeMethodDescriptionansweredBy(net.serenitybdd.screenplay.Actor actor) net.serenitybdd.screenplay.Question<Boolean>Check if the element has a specific class.static CSSClassesGet CSS classes for an element identified by a selector.static CSSClassesGet CSS classes for a Target element.toString()Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface net.serenitybdd.screenplay.Question
as, asADate, asADate, asBigDecimal, asBoolean, asCollectionOf, asDouble, asEnum, asFloat, asInteger, asListOf, asLong, asString, describedAs, getSubject, map, mapEach
-
Method Details