robotframework-androidlibrary icon indicating copy to clipboard operation
robotframework-androidlibrary copied to clipboard

Set Text adds text, does not set value of field

Open BrewerJack opened this issue 11 years ago • 1 comments

When using Set Text on a field for my app I found that Set Text actually adds to the text and does not replace it as I had thought.

Example:

Test 1
    Set Text  1  Bob
    Set Text  2  Smith
Test 2 
    Set Text  1  Bill
    Set Text  2  James

The above will result in the following:

After Test 1:

Field 1:  Bob
Field 2:  Smith

After Test 2:

Field 1:  BobBill
Field 2:  SmithJames

If this is normal behavior please disregard and let me know how to blank those fields.

Thanks.

BrewerJack avatar Jun 03 '13 21:06 BrewerJack

Workaround:

To blank a text field use:

Set Text  1  ${EMPTY}

BrewerJack avatar Jun 14 '13 03:06 BrewerJack