Waiting for keyboard to appear

80 views
Skip to first unread message

Ondrej Hanslik

unread,
May 16, 2013, 5:15:21 AM5/16/13
to frank-...@googlegroups.com
Hi,

very often I have to type something into a textfield/textview or another text component.
My steps are the following:

touch(text_field)
sleep(0.75)

tap_clear_button_if_exists

type_into_keyboard(...)      


The problematic part is the sleep(0.75). I am not very happy to have random sleep times in my tests. Have somebody find a better way to handle this?


I have tried wait_for_nothing_to_be_animating but on iPad the wait never ends since there are some infinite animations in the keyboard views.



Peter Hodgson

unread,
May 16, 2013, 10:40:49 AM5/16/13
to frank-...@googlegroups.com
Can you do some other kind of spin assert?  Maybe something like:

wait_until{ element_exists("view marked:'Clear Button' FEX_canTouch") }





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





Ondrej Hanslik

unread,
May 16, 2013, 4:24:30 PM5/16/13
to frank-...@googlegroups.com
I tried it with "view:'UIKBKeyView' FEX_canTouch" but it returns immediately after the keyboard starts appearance animation.

I suppose the only reliable way is to somehow listen to keyboard notifications.

Joe Masilotti

unread,
Dec 22, 2013, 3:22:08 PM12/22/13
to frank-...@googlegroups.com
When waiting for the keyboard to appear wait_for_nothing_to_be_animating works quite well.
Reply all
Reply to author
Forward
0 new messages