SeleniumLibrary icon indicating copy to clipboard operation
SeleniumLibrary copied to clipboard

Provide support for waiting for a value in a textarea element

Open nathanhannig opened this issue 4 years ago • 2 comments

Feature request

While evaluating RobotFramework + SeleniumLibrary I found a use case where the value of a textarea is changed and I would like to wait until the value matches some expected text.

Generally, you would expect Wait Until Element Contains would fill this scenario. But issue #167 showcases that textareas behave a little differently.

I believe that textareas would need their own Wait Until keyword to handle the .value property they contain.

nathanhannig avatar May 05 '21 21:05 nathanhannig

I think the following should be added to match Textarea support to Element support

Wait Until Textarea Contains - wait_until_textarea_contains Wait Until Textarea Does Not Contains - wait_until_textarea_does_not_contain Wait Until Textarea Value Is - wait_until_textarea_value_is Wait Until Textarea Value Is Not - wait_until_textarea_value_is_not

Textarea Should Not Contain - textarea_should_not_contain Textarea Value Should Not Be - textarea_value_should_not_be

nathanhannig avatar May 06 '21 01:05 nathanhannig

I will work on a PR for this

Wait Until Textarea Contains - wait_until_textarea_contains Wait Until Textarea Does Not Contains - wait_until_textarea_does_not_contain Wait Until Textarea Value Is - wait_until_textarea_value_is Wait Until Textarea Value Is Not - wait_until_textarea_value_is_not

nathanhannig avatar May 06 '21 01:05 nathanhannig