How to do "Backspace" or "Delete" action in the script?

732 views
Skip to first unread message

Leo Sun

unread,
Mar 28, 2013, 6:06:22 PM3/28/13
to calaba...@googlegroups.com
I need to clean a text field. Does anyone know how to clean the pre-typed text in a text field? 

Thanks

Leo Sun

unread,
Mar 28, 2013, 7:00:49 PM3/28/13
to calaba...@googlegroups.com
OK, I found it. 

Sneha

unread,
Apr 1, 2013, 1:41:25 AM4/1/13
to calaba...@googlegroups.com
Hi 

I try this code

      tap 'textbox'

       await_keyboard

       keyboard_enter_char "Delete"

       keyboard_enter_text("Editing")

but the textbox value is not clear .so can u plz help me on this

Karl Krukow

unread,
Apr 1, 2013, 1:45:45 AM4/1/13
to calaba...@googlegroups.com
What happens and what did you expect to happen?

keyboard_enter_char "Delete"

is a single tap on the 'backspace' key

- Karl
--
You received this message because you are subscribed to the Google Groups "calabash-ios" group.
To unsubscribe from this group and stop receiving emails from it, send an email to calabash-ios...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.
 
 

Sneha

unread,
Apr 1, 2013, 2:07:18 AM4/1/13
to calaba...@googlegroups.com
for clear text value in text filed I write this code

set_text("textField index:#{1}","")

but in some text box index is not setting so that the I want how to clear the text values in text box.

so I use 

keyboard_enter_char "Delete"
It not clear the text values
Reply all
Reply to author
Forward
0 new messages