dtmilano / AndroidViewClient

Android ViewServer and ADB client
Apache License 2.0
1.62k stars 347 forks source link

add setText function #70

Closed elbajo closed 4 years ago

elbajo commented 10 years ago

Clear EditText before typing in it.

For example : in log in pages the username can already be written, with "setText" it will delete the text if it not empty (except if it's already the right text)

elbajo commented 10 years ago

In this pull request I also add the possibility of typing directly (without touching an area) which i use in some of my tests.

For example: You arrive to a page where the text area is already selected, you just want to look for it to make sure it's there. Once you know that, there is no need to touch it because it's already selected. (It's not essential but it's still helpful sometimes)

elbajo commented 10 years ago

Tell me if there is anything you want me to change

dtmilano commented 10 years ago

Having test cases would help me a lot validating the patch.

On Thu, Dec 5, 2013 at 11:30 AM, elbajo notifications@github.com wrote:

Tell me if there is anything you want me to change

— Reply to this email directly or view it on GitHubhttps://github.com/dtmilano/AndroidViewClient/pull/70#issuecomment-29912776 .

Have you read my blog ? http://dtmilano.blogspot.com android junit tests ui linux cult thin clients

Fuzion24 commented 10 years ago

Added by #94