Class InputTextElement

java.lang.Object
com.vaadin.testbench.TestBenchElement
com.vaadin.flow.component.html.testbench.InputTextElement
All Implemented Interfaces:
CanCompareScreenshots, HasCallFunction, HasDriver, HasElementQuery, HasPlaceholder, HasPropertySettersGetters, HasSearchContext, HasTestBenchCommandExecutor, org.openqa.selenium.SearchContext, org.openqa.selenium.TakesScreenshot, org.openqa.selenium.WebElement, org.openqa.selenium.WrapsElement

public class InputTextElement extends TestBenchElement implements HasPlaceholder
A TestBench element representing an <input type='text'> element.
Since:
1.0
  • Constructor Details

    • InputTextElement

      public InputTextElement()
  • Method Details

    • setValue

      public void setValue(String value)
      Sets the value of the text input to the given value, clearing out any old value of the input.
      Parameters:
      value - the value to set
    • clear

      public void clear()
      Clears the input field.
      Specified by:
      clear in interface org.openqa.selenium.WebElement
      Overrides:
      clear in class TestBenchElement
    • getValue

      public String getValue()
    • getPlaceholder

      public String getPlaceholder()
      Description copied from interface: HasPlaceholder
      Gets the placeholder for the element.
      Specified by:
      getPlaceholder in interface HasPlaceholder
      Returns:
      the placeholder or an empty string if there is no placeholder