Class UnresolvedTargetWebElementState

java.lang.Object
net.serenitybdd.screenplay.questions.UnresolvedTargetWebElementState
All Implemented Interfaces:
net.serenitybdd.core.pages.WebElementState

public class UnresolvedTargetWebElementState extends Object implements net.serenitybdd.core.pages.WebElementState
Created by john on 14/01/2016.
  • Constructor Details

    • UnresolvedTargetWebElementState

      public UnresolvedTargetWebElementState(String name)
  • Method Details

    • setSelector

      public void setSelector(String selector)
    • toString

      public String toString()
      Overrides:
      toString in class Object
    • isVisible

      public boolean isVisible()
      Specified by:
      isVisible in interface net.serenitybdd.core.pages.WebElementState
    • isCurrentlyVisible

      public boolean isCurrentlyVisible()
      Specified by:
      isCurrentlyVisible in interface net.serenitybdd.core.pages.WebElementState
    • isCurrentlyEnabled

      public boolean isCurrentlyEnabled()
      Specified by:
      isCurrentlyEnabled in interface net.serenitybdd.core.pages.WebElementState
    • shouldBeVisible

      public net.serenitybdd.core.pages.WebElementState shouldBeVisible()
      Specified by:
      shouldBeVisible in interface net.serenitybdd.core.pages.WebElementState
    • shouldBeCurrentlyVisible

      public net.serenitybdd.core.pages.WebElementState shouldBeCurrentlyVisible()
      Specified by:
      shouldBeCurrentlyVisible in interface net.serenitybdd.core.pages.WebElementState
    • shouldNotBeVisible

      public net.serenitybdd.core.pages.WebElementState shouldNotBeVisible()
      Specified by:
      shouldNotBeVisible in interface net.serenitybdd.core.pages.WebElementState
    • shouldNotBeCurrentlyVisible

      public net.serenitybdd.core.pages.WebElementState shouldNotBeCurrentlyVisible()
      Specified by:
      shouldNotBeCurrentlyVisible in interface net.serenitybdd.core.pages.WebElementState
    • hasFocus

      public boolean hasFocus()
      Specified by:
      hasFocus in interface net.serenitybdd.core.pages.WebElementState
    • containsText

      public boolean containsText(String value)
      Specified by:
      containsText in interface net.serenitybdd.core.pages.WebElementState
    • containsValue

      public boolean containsValue(String value)
      Specified by:
      containsValue in interface net.serenitybdd.core.pages.WebElementState
    • containsOnlyText

      public boolean containsOnlyText(String value)
      Specified by:
      containsOnlyText in interface net.serenitybdd.core.pages.WebElementState
    • containsSelectOption

      public boolean containsSelectOption(String value)
      Specified by:
      containsSelectOption in interface net.serenitybdd.core.pages.WebElementState
    • shouldContainText

      public net.serenitybdd.core.pages.WebElementState shouldContainText(String textValue)
      Specified by:
      shouldContainText in interface net.serenitybdd.core.pages.WebElementState
    • shouldContainOnlyText

      public net.serenitybdd.core.pages.WebElementState shouldContainOnlyText(String textValue)
      Specified by:
      shouldContainOnlyText in interface net.serenitybdd.core.pages.WebElementState
    • shouldContainSelectedOption

      public net.serenitybdd.core.pages.WebElementState shouldContainSelectedOption(String textValue)
      Specified by:
      shouldContainSelectedOption in interface net.serenitybdd.core.pages.WebElementState
    • shouldNotContainText

      public net.serenitybdd.core.pages.WebElementState shouldNotContainText(String textValue)
      Specified by:
      shouldNotContainText in interface net.serenitybdd.core.pages.WebElementState
    • shouldBeEnabled

      public net.serenitybdd.core.pages.WebElementState shouldBeEnabled()
      Specified by:
      shouldBeEnabled in interface net.serenitybdd.core.pages.WebElementState
    • isEnabled

      public boolean isEnabled()
      Specified by:
      isEnabled in interface net.serenitybdd.core.pages.WebElementState
    • isDisabled

      public boolean isDisabled()
      Specified by:
      isDisabled in interface net.serenitybdd.core.pages.WebElementState
    • shouldNotBeEnabled

      public net.serenitybdd.core.pages.WebElementState shouldNotBeEnabled()
      Specified by:
      shouldNotBeEnabled in interface net.serenitybdd.core.pages.WebElementState
    • getSelectedVisibleTextValue

      public String getSelectedVisibleTextValue()
      Specified by:
      getSelectedVisibleTextValue in interface net.serenitybdd.core.pages.WebElementState
    • getSelectedVisibleTexts

      public List<String> getSelectedVisibleTexts()
      Specified by:
      getSelectedVisibleTexts in interface net.serenitybdd.core.pages.WebElementState
    • getSelectedValue

      public String getSelectedValue()
      Specified by:
      getSelectedValue in interface net.serenitybdd.core.pages.WebElementState
    • getSelectedValues

      public List<String> getSelectedValues()
      Specified by:
      getSelectedValues in interface net.serenitybdd.core.pages.WebElementState
    • getSelectOptions

      public List<String> getSelectOptions()
      Specified by:
      getSelectOptions in interface net.serenitybdd.core.pages.WebElementState
    • isPresent

      public boolean isPresent()
      Specified by:
      isPresent in interface net.serenitybdd.core.pages.WebElementState
    • shouldBePresent

      public net.serenitybdd.core.pages.WebElementState shouldBePresent()
      Specified by:
      shouldBePresent in interface net.serenitybdd.core.pages.WebElementState
    • shouldNotBePresent

      public net.serenitybdd.core.pages.WebElementState shouldNotBePresent()
      Specified by:
      shouldNotBePresent in interface net.serenitybdd.core.pages.WebElementState
    • shouldBeSelected

      public net.serenitybdd.core.pages.WebElementState shouldBeSelected()
      Specified by:
      shouldBeSelected in interface net.serenitybdd.core.pages.WebElementState
    • shouldNotBeSelected

      public net.serenitybdd.core.pages.WebElementState shouldNotBeSelected()
      Specified by:
      shouldNotBeSelected in interface net.serenitybdd.core.pages.WebElementState
    • isSelected

      public boolean isSelected()
      Specified by:
      isSelected in interface net.serenitybdd.core.pages.WebElementState
    • getTextValue

      public String getTextValue()
      Specified by:
      getTextValue in interface net.serenitybdd.core.pages.WebElementState
    • getValue

      public String getValue()
      Specified by:
      getValue in interface net.serenitybdd.core.pages.WebElementState
    • getText

      public String getText()
      Specified by:
      getText in interface net.serenitybdd.core.pages.WebElementState
    • getAttribute

      public String getAttribute(String name)
      Specified by:
      getAttribute in interface net.serenitybdd.core.pages.WebElementState
    • expect

      public net.serenitybdd.core.pages.WebElementState expect(String errorMessage)
      Specified by:
      expect in interface net.serenitybdd.core.pages.WebElementState
    • isClickable

      public boolean isClickable()
      Specified by:
      isClickable in interface net.serenitybdd.core.pages.WebElementState