The Input Text and Input Password keywords always clear the input element before they type in the text. But it could be beneficial from the testing point of view, if the clearing of the input element could be configurable.
By default keywords should clear the input element and keep the backwards compatibility. But if clear argument is False, the Selenium clear method is not called.
By default, keyword will clear the input element:
| Input Text | //input | some text |
If clear is any true value, Selenium clear is called:
| Input Text | //input | some text | clear=true |
If clear is any false value, Selenium clear is not called:
| Input Text | //input | some text | clear=false |
For consistency reasons, same applies also for the Input Password keyword.
This issue replaces the #1291 as making the keywords configurable for clearing the input element.