Class Enter

java.lang.Object
net.serenitybdd.screenplay.actions.Enter

public class Enter
extends java.lang.Object
Enter a value into a field, first waiting until the field is enabled, and then clearing the field of any current values, before entering the specified value. To perform the equivalent of Selenium `sendKeys()`, you can use `Enter.keyValue()` instead of `Enter.theValue()`
  • Constructor Summary

    Constructors 
    Constructor Description
    Enter​(java.lang.CharSequence... theText)  
  • Method Summary

    Modifier and Type Method Description
    EnterValue into​(java.lang.String cssOrXpathForElement)  
    EnterValue into​(WebElementFacade element)  
    EnterValue into​(Target target)  
    EnterValue into​(org.openqa.selenium.By... locators)  
    static SendKeys keyValues​(java.lang.CharSequence... text)  
    static Enter theValue​(java.lang.CharSequence... text)  

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • Enter

      public Enter​(java.lang.CharSequence... theText)
  • Method Details

    • theValue

      public static Enter theValue​(java.lang.CharSequence... text)
    • keyValues

      public static SendKeys keyValues​(java.lang.CharSequence... text)
    • into

      public EnterValue into​(java.lang.String cssOrXpathForElement)
    • into

      public EnterValue into​(Target target)
    • into

      public EnterValue into​(WebElementFacade element)
    • into

      public EnterValue into​(org.openqa.selenium.By... locators)