Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

keyboard_enter_text into field with UIKeyboardTypeDecimalPad does not finish #555

Closed
fabb opened this issue Oct 13, 2014 · 7 comments · Fixed by calabash/run_loop#82
Closed

Comments

@fabb
Copy link

fabb commented Oct 13, 2014

I have a textfield with keyboardType UIKeyboardTypeDecimalPad. I try to fill it via keyboard_enter_text. The text is input, and then deleted again. This happens in an infinite loop even though I just called keyboard_enter_text only once.
I guess this has to do with the UIKeyboardTypeDecimalPad keyboard not having a return button.
For keyboard dismissal, I have activated UIScrollViewKeyboardDismissModeInteractive.

@jmoody
Copy link
Contributor

jmoody commented Oct 16, 2014

Please paste the exact command and string.

@fabb
Copy link
Author

fabb commented Oct 16, 2014

I run 0.11.0 with Xcode 6.0.2 on an iPhone 5s simulator with iOS 7.1. I execute the following commands via cucumber:

tap_mark textfield_field_mark
wait_for_keyboard
keyboard_enter_text "13.37"

This is the result:
keyboard_decimal_issue2

When I use the string "13,37" (the comma is not available on the keyboard), this is the result:
keyboard_decimal_issue

@michaelkirk
Copy link
Contributor

@fabb to clarify - are you surprised by both of these cases, or just the second (13,37) case?

@fabb
Copy link
Author

fabb commented Nov 4, 2014

I am very surprised by the second case, and a little by the first. I know there is no Done button on the keyboard, and calabash cannot know that a vertical swipe will close the keyboard. But I wonder why keyboard_enter_text tries to tap on the textfield multiple times after input has finished.

@jmoody
Copy link
Contributor

jmoody commented Nov 6, 2014

This is very similar to the behavior described in this case:

uia_type_string enters loop when trying to type a key that does not exist on the keyboard - UITextFields only #310

@jmoody
Copy link
Contributor

jmoody commented Nov 10, 2014

@fabb The second case where you type "13,37" is a localization problem. If you need to type a "," instead of a "." for the decimal separator, then you'll need to set the locale of the device/simulator or detect the locale in your tests and try to type the correct string.

I am still trying to reproduce the first case.

@krukow
Copy link
Contributor

krukow commented Nov 29, 2014

Should be fixed in 0.11.5.pre3 - #630

Please reopen if you see fit.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

4 participants