Interface InputWebElementHandler

  • All Known Implementing Classes:
    DefaultInputWebElementHandler, HtmlUnitInputWebElementHandler

    public interface InputWebElementHandler
    HTML input elements need some special handling concerning certain operations. Unfortunately the behaviour differs between different implementation of WebDriver. Therefore this interface offers the possibility to customize the behavior.
    Author:
    Oliver Libutzki <[email protected]>
    • Method Summary

      All Methods Instance Methods Abstract Methods 
      Modifier and Type Method Description
      void deleteText​(org.openqa.selenium.WebElement webElement)
      Deletes the text of the given WebElement which has to be a HTML input element.
      void loseFocus​(org.openqa.selenium.WebElement webElement)
      Forces the given WebElement to lose its focus in order to trigger the onchange event.
    • Method Detail

      • loseFocus

        void loseFocus​(org.openqa.selenium.WebElement webElement)
        Forces the given WebElement to lose its focus in order to trigger the onchange event.
        Parameters:
        webElement - HTML input element
      • deleteText

        void deleteText​(org.openqa.selenium.WebElement webElement)
        Deletes the text of the given WebElement which has to be a HTML input element.
        Parameters:
        webElement - HTML input element