Class AttributeOfAll
java.lang.Object
net.serenitybdd.screenplay.playwright.questions.AttributeOfAll
public class AttributeOfAll
extends Object
implements net.serenitybdd.screenplay.Question<List<String>>
Get an attribute value from all matching elements.
Sample usage:
List<String> hrefs = actor.asksFor(AttributeOfAll.of("a").named("href"));
List<String> ids = actor.asksFor(AttributeOfAll.of(LINKS).named("id"));
-
Method Summary
Modifier and TypeMethodDescriptionansweredBy(net.serenitybdd.screenplay.Actor actor) Specify the attribute name to retrieve.static AttributeOfAllGet attribute values from elements matching a selector.static AttributeOfAllGet attribute values from elements matching a Target.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
-
of
Get attribute values from elements matching a selector. -
of
Get attribute values from elements matching a Target. -
named
Specify the attribute name to retrieve. -
answeredBy
-
toString
-