Calabash-cucumber ios:如何删除textField

时间:2015-12-15 16:17:27

标签: ios automation calabash calabash-ios

我正在尝试删除textField中的字符,使用--keyboard_enter_char"删除" - 这是我在步骤定义中的代码。

touch(query("textField")[0])        # touch the textField and bring up the keyboard, working
keyboard_enter_text("a")            # enter "a" into the textField, working
keyboard_enter_char "delete"        # I expect to see the "a" gone

所以执行keyboard_enter_char "delete"

我收到了错误

typing character 'delete' is not yet supported when running with Instruments (RuntimeError) 

并且脚本停止。

有人能告诉我我做错了什么,或者我应该如何删除textField中的字符?谢谢!

0 个答案:

没有答案