class FormElement extends Module
A module that can be used to access common properties of form elements. Serves as a base for more specialised modules modeling form elements.
An attempt to initialize this module with a base other than a button
, input
, option
, select
or textarea
will result in an
InvalidModuleBaseException.
Constructor and description |
---|
FormElement() |
Type Params | Return Type | Name and description |
---|---|---|
|
protected void |
ensureAtMostOneBaseElement() |
|
protected void |
initialized() |
|
boolean |
isDisabled() Allows to check if the first element of base navigator for this module is disabled based on the value of it's disabled attribute. |
|
boolean |
isEditable() Shorthand for {
|
|
boolean |
isEnabled() Shorthand for {
|
|
boolean |
isReadOnly() Allows to check if the first element of base navigator for this module is read-only based on the value of it's readonly attribute. |
Methods inherited from class | Name |
---|---|
class Module |
asBoolean, equals, getContentPath, getHasOwner, getInitializedNavigator, getJs, getRootContainer, getStringRepresentation, hashCode, init, init, initialized, methodMissing, propertyMissing, propertyMissing, setEventListener, toString, uninitializedException, waitFor, waitFor, waitFor, waitFor |
Allows to check if the first element of base navigator for this module is disabled based on the value of it's disabled
attribute.
Shorthand for !readOnly
.
Shorthand for !disabled
Allows to check if the first element of base navigator for this module is read-only based on the value of it's readonly
attribute.
Groovy API Documentation for Geb 7.0 - Licensed under the Apache License, Version 2.0 - http://www.gebish.org