Skip to content

Input Text and Input Password keywords should be configurable if they clear the input element before keywords types the text in #1330

@aaltat

Description

@aaltat

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.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions