Clear and Send Keys
Is the action of removing the existing content of an input field and sending a new data to replace it.
Platform
Web, Android, iOS, Windows, JavaSwing
Attribute
| Attribute | Data Source | Recommended |
|---|---|---|
| Locator: is the element that the keyword will interact with on the user interface | Value (commonly used): the value does not change during the test Variable: used when the xpath changes according to the input data of the test scenario | The system recommends the default locator is Repository Element |
| Value: the value to be passed to the element | Value: value does not change during testing Variable (commonly used): is a parameter when performing data driven testing Parameter: used when data transmitted into the test script changes according to the environment (Environment parameter), device (Device parameter), version (Version parameter), agent (Agent parameter) | The default system is String |
| End Key (press tab/ enter/ escape after entering data) - None: do not perform - Tab - Enter - Escape | - | - |
Use case
Used when the user needs to enter data for the input text, textarea... tags of the test script.
If the data source is a variable and the name is not declared in the test scenario, the system will automatically create a parameter that matches the name of the variable
Example
Enter "<kiemthu@gmail.com>" in the "Username" information field