How do I append text in an input field
This example demonstrates appending a text or number in the input field without clearing the existing text or number in the input field.
In the solution shown below, you will see that an additional '0' is appended to the existing number '2500' in the "Income" field in
HICC using "sendKeys" command.
Solution:
# | Command | Target | Value |
---|---|---|---|
Append the value in the income field | |||
1 | sendKeys | id=txt_income | 0 |
Tips, Tricks, Gotchas & Best Practices:
- As an alternative to "sendKeys", sendKeysEnter and sendKeysTabOut commands can be used.
- As a best practice, you are encouraged to validate the value entered in the input field using assertValue, verifyValue or waitForValue commands.