Class AllOptionTexts
java.lang.Object
net.serenitybdd.screenplay.playwright.questions.AllOptionTexts
public class AllOptionTexts
extends Object
implements net.serenitybdd.screenplay.Question<List<String>>
Get the text of all options in a select element.
Sample usage:
List<String> options = actor.asksFor(AllOptionTexts.of("#country"));
List<String> options = actor.asksFor(AllOptionTexts.of(COUNTRY_DROPDOWN));
-
Method Summary
Modifier and TypeMethodDescriptionansweredBy(net.serenitybdd.screenplay.Actor actor) static AllOptionTextsGet all option texts from a select element identified by a selector.static AllOptionTextsGet all option texts from a Target select 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