Class sap.ui.test.actions.EnterTextModule: sap/ui/test/actions/EnterText
Since: 1.34.
sClassName
and enriches it with the information contained in oClassInfo
.- sap.m.Input
- sap.m.SearchField
- sap.m.TextArea
Accepts an object literal mSettings
that defines initial property values, aggregated and associated objects as well as event handlers. See sap.ui.base.ManagedObject for a general description of the syntax of the settings object.
The supported settings are:
- Properties
- text : string
- clearTextFirst : boolean (default: true)
In addition, all settings applicable to the base type sap.ui.test.actions.Action can be used as well.
sClassName
and enriches it with the information contained in oClassInfo
. oClassInfo
might contain the same kind of information as described in sap.ui.test.actions.Action.extend.
{string} | sClassName | Name of the class being created |
{object} | oClassInfo? | Object literal with information about the class |
{function} | FNMetaImpl? | Constructor function for the metadata object; if not given, it defaults to sap.ui.core.ElementMetadata |
{function} | Created class / constructor function |
{sap.ui.base.Metadata} | Metadata object describing this class |
{sap.ui.core.Control} | oControl | the control on which the text event should be entered in. |
clearTextFirst
. Default value is true
.
- Since:
- 1.38.0 If it is set to false, the current text of the Control will be preserved. By default the current text of the control will be cleared. When the text is going to be cleared, a delete character event will be fired and then the value of the input is emptied. This will trigger a liveChange event on the input with an empty value.
{boolean} | Value of property clearTextFirst |
text
. The Text that is going to be typed to the control. If you are entering an empty string, the value will be cleared.
{string} | Value of property text |
clearTextFirst
. When called with a value of null
or undefined
, the default value of the property will be restored.
Default value is true
.
{boolean} | bClearTextFirst | New value for property clearTextFirst |
- Since:
- 1.38.0 If it is set to false, the current text of the Control will be preserved. By default the current text of the control will be cleared. When the text is going to be cleared, a delete character event will be fired and then the value of the input is emptied. This will trigger a liveChange event on the input with an empty value.
{sap.ui.test.actions.EnterText} | Reference to this in order to allow method chaining |
text
. The Text that is going to be typed to the control. If you are entering an empty string, the value will be cleared.
When called with a value of null
or undefined
, the default value of the property will be restored.
{string} | sText | New value for property text |
{sap.ui.test.actions.EnterText} | Reference to this in order to allow method chaining |