lovelysystems / robotframework-androidlibrary

Robot Framework Automation Library for Android
29 stars 22 forks source link

Set Text adds text, does not set value of field #53

Open BrewerJack opened 11 years ago

BrewerJack commented 11 years ago

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 commented 11 years ago

Workaround:

To blank a text field use:

Set Text  1  ${EMPTY}