-
Notifications
You must be signed in to change notification settings - Fork 18
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.
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'sWebElement(if not in a read-only state); -
boolean isCombo()which returnstrueif the component is associated with a WSuggestions (currently WSuggestions applies only to a WTextField, WEmailField or WPhoneNumberField); -
WebElement getSuggestionList()provides access to theWebElementrepresentation of a suggestion list when a component is associated with a WSuggestions.
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.):
- WCheckBox
- WEmailField
- WMultiSelect (v1.4 onwards)
- WPhoneNumberField
- WNumberField (v1.4 onwards)
- WRadioButton
- WSingleSelect (v1.4 onwards)
- WTextArea
- WTextField