Class AbstractInputComponent

All Implemented Interfaces:
org.openqa.selenium.SearchContext, org.openqa.selenium.TakesScreenshot, org.openqa.selenium.WebElement, org.openqa.selenium.WrapsElement
Direct Known Subclasses:
AbstractToggleComponent, AutoComplete, Calendar, CascadeSelect, Chips, ColorPicker, DatePicker, FileUpload, InputText, Menubar, Rating, SelectCheckboxMenu, SelectManyMenu, SelectOneButton, SelectOneMenu, SelectOneMenu, Slider, TriStateCheckbox

public abstract class AbstractInputComponent extends AbstractComponent
  • Constructor Details

    • AbstractInputComponent

      public AbstractInputComponent()
  • Method Details

    • getInput

      public org.openqa.selenium.WebElement getInput()
      The input element reference.
      Returns:
      the WebElement representing the input.
    • isEnabled

      public boolean isEnabled()
      Is this SelectOneMenu enabled?
      Returns:
      true if enabled, false if not
    • isOnchangeAjaxified

      public boolean isOnchangeAjaxified()
      Is the input using AJAX "change" or "valueChange" event?
      Returns:
      true if using AJAX for onchange, change or valueChange
    • getAssignedLabel

      public org.openqa.selenium.WebElement getAssignedLabel()
      The HTML label assigned to this input.
      Returns:
      the WebElement representing the label.
    • getAssignedLabelText

      public String getAssignedLabelText()
      The HTML label text assigned to this input.
      Returns:
      the value of the label text
    • copyToClipboard

      public String copyToClipboard()
      Copy the current value in the Input to the clipboard.
      Returns:
      the value copied to the clipboard
    • pasteFromClipboard

      public String pasteFromClipboard()
      Paste the current value of the clipboard to the Input.
      Returns:
      the value pasted into the input
    • selectAllText

      public void selectAllText()
      Selects all text in the input component.
    • clear

      public void clear()
      Clears the input and guards AJAX for "clear" event.
    • enable

      public void enable()
      Enables the input/
    • disable

      public void disable()
      Disables the input.
    • focus

      public void focus()
      Sets tje focus to the element.