Class TargetText

java.lang.Object
net.serenitybdd.screenplay.questions.targets.TargetText
All Implemented Interfaces:
net.serenitybdd.screenplay.Question<String>

public class TargetText extends Object implements net.serenitybdd.screenplay.Question<String>
  • Method Summary

    Modifier and Type
    Method
    Description
    answeredBy(net.serenitybdd.screenplay.Actor actor)
     
    Return text values even if they are off screen By default, Selenium will throw an exception for off-screen elements.

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

    Methods 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

    • ignoringVisibility

      public TargetTextContent ignoringVisibility()
      Return text values even if they are off screen By default, Selenium will throw an exception for off-screen elements.
    • answeredBy

      public String answeredBy(net.serenitybdd.screenplay.Actor actor)
      Specified by:
      answeredBy in interface net.serenitybdd.screenplay.Question<String>