I am trying to delete a character in textField, using --keyboard_enter_char "Delete"-- and here is my code in step definition.
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
So when keyboard_enter_char "delete"
is executed
I got an error
typing character 'delete' is not yet supported when running with Instruments (RuntimeError)
and script stops.
Could anyone tell me what am I doing wrong or how should I delete a char from textField
? Thank you!