Class SuggestInputElement


  • public class SuggestInputElement
    extends BaseElement
    Represents the actions possible on the suggest input widget.
    Since:
    10.6RC1
    Version:
    $Id: 8a9ee8ff08a661a85115aa0840027b371b4689b0 $
    • Constructor Detail

      • SuggestInputElement

        public SuggestInputElement​(org.openqa.selenium.WebElement originalInput)
    • Method Detail

      • click

        public SuggestInputElement click()
        Clicks on the text input.
        Returns:
        the current suggest input element
      • clear

        public SuggestInputElement clear()
        Removes the typed text.
        Returns:
        the current suggest input element
      • clearSelectedSuggestions

        public SuggestInputElement clearSelectedSuggestions()
        Removes all the selected elements.
        Returns:
        the current suggest input element
      • sendKeys

        public SuggestInputElement sendKeys​(CharSequence... keysToSend)
        Sends the given sequence of keys to the input.
        Returns:
        the current suggest input element
      • waitForSuggestions

        public SuggestInputElement waitForSuggestions()
        Waits until the suggestions have been loaded.
        Returns:
        the current suggest input element
      • selectByIndex

        public SuggestInputElement selectByIndex​(int index)
        Selects an element by clicking on the suggestion with the given position.
        Returns:
        the current suggest input element
      • selectByValue

        public SuggestInputElement selectByValue​(String value)
        Selects an element by clicking on the suggestion with the given value.
        Returns:
        the current suggest input element
      • selectByVisibleText

        public SuggestInputElement selectByVisibleText​(String text)
        Selects an element by clicking on the suggestion with the given label.
        Returns:
        the current suggest input element
      • selectTypedText

        public SuggestInputElement selectTypedText()
        Selects and creates an element with the input text.
        Returns:
        the current suggest input element
      • getValues

        public List<String> getValues()
        Returns:
        list of all the values of the selected elements.
      • hideSuggestions

        public SuggestInputElement hideSuggestions()
        Hides the suggestions panel.
        Returns:
        the current suggest input element