Skip to content

SeleniumWComponentInputWebElement

Mark Reeves edited this page Dec 21, 2017 · 7 revisions

SeleniumWComponentInputWebElement extends SeleniumWComponentWebElement to provide common means for testing simple Input controls in WComponents such as WCheckBox, WRadioButton, or WTextField.

Added functionality

SeleniumWComponentInputWebElement overrides some members of SeleniumWComponentWebElement or org.openqa.selenium.WebElement and provides the following extra functionality:

  • String getValue()
  • boolean isReadOnly()

From v1.4 onwards SeleniumWComponentInputWebElement also provides:

  • boolean isMandatory();
  • WebElement getInputField() provides direct access to the wrapped HTML input element's WebElement (if not in a read-only state);
  • boolean isCombo() which returns true if the component is associated with a WSuggestions (currently WSuggestions applies only to a WTextField, WEmailField or WPhoneNumberField);
  • WebElement getSuggestionList() provides access to the WebElement representation of a suggestion list when a component is associated with a WSuggestions.

Input WComponents

The Input WComponents which may be tested using SeleniumWComponentInputWebElement have an extension of this class to implement specific functionality. The documentation of this is in the Testing section of the individual component's wiki page (w.i.p.):

Related components

Further information

Clone this wiki locally