Keyboard not accessible via iCuke

11 views
Skip to first unread message

patcoll

unread,
Feb 3, 2011, 1:32:39 PM2/3/11
to iCuke
Hey all.

I'm trying to integrate iCuke into an existing iPhone project. I've
cloned this repo and got the example to work:

https://github.com/robholland/icuke

I now want to create a simple example for login screen for my existing
app. My login screen comes up right when you open the app, if you are
not logged in, so the "Email" and "Password" fields appear correctly.
When I run this in my step definition:

When %Q(I type "pat" in "Email")

It correctly focuses on the Email field, taps it for 0.75 secs,
selects all, deletes, pauses 0.5 secs, then tries to type the first
letter and I get this error:

No element labelled "p" found in: <screen>
<frame x="0.000000" y="20.000000" width="320.000000"
height="460.000000"/>
<UIWindow>
<UIView><UIImageView/><UIButton traits="button "
label="Login"><frame x="24.000000" y="229.000000" width="280.000000"
height="42.000000"/><UIImageView/><UIButtonLabel traits="static_text "
label="Login"><frame x="143.000000" y="240.000000" width="41.000000"
height="19.000000"/></UIButtonLabel></
UIButton><UITextField><UITextFieldRoundedRectBackgroundView><UIImageView/
><UIImageView/><UIImageView/><UIImageView/><UIImageView/><UIImageView/
><UIImageView/><UIImageView/><UIImageView/><UIImageView/><UIImageView/
><UIImageView/></
UITextFieldRoundedRectBackgroundView><UIFieldEditor><AccessibilityObjectWrapper><frame
x="32.000000" y="146.000000" width="640.000000" height="640.000000"/
><AccessibilityObjectWrapper><frame x="32.000000" y="152.000000"
width="261.000000" height="27.000000"/></AccessibilityObjectWrapper></
AccessibilityObjectWrapper></
UIFieldEditor><UITextSelectionView><UIView/></
UITextSelectionView><UITextFieldLabel traits="static_text "
label="Email"><frame x="34.000000" y="152.000000" width="261.000000"
height="15.000000"/></
UITextFieldLabel><UIAccessibilityTextFieldElement traits=""
value="Email"><frame x="25.000000" y="144.000000" width="275.000000"
height="31.000000"/></UIAccessibilityTextFieldElement></
UITextField><UITextField><UITextFieldRoundedRectBackgroundView><UIImageView/
><UIImageView/><UIImageView/><UIImageView/><UIImageView/><UIImageView/
><UIImageView/><UIImageView/><UIImageView/><UIImageView/><UIImageView/
><UIImageView/></
UITextFieldRoundedRectBackgroundView><UITextFieldLabel
traits="static_text " label="Password"><frame x="34.000000"
y="189.000000" width="261.000000" height="15.000000"/></
UITextFieldLabel><UIAccessibilityTextFieldElement traits=""
value="Password"><frame x="25.000000" y="181.000000"
width="275.000000" height="31.000000"/></
UIAccessibilityTextFieldElement></UITextField><UIImageView/><UILabel
traits="static_text " label="seller account"><frame x="173.000000"
y="115.000000" width="103.000000" height="21.000000"/></
UILabel><UILabel traits="static_text " label="Please login to
your"><frame x="52.000000" y="115.000000" width="125.000000"
height="21.000000"/></UILabel><UILabel traits="static_text "
label="Copyright &#xA9; 2011 ShowClix Inc. All rights reserved."/>"
&gt;<frame x="24.000000" y="279.000000" width="280.000000"
height="20.000000"/></UIView>
</UIWindow>
</screen> (RuntimeError)
./features/support/../../lib/icuke/screen.rb:44:in
`first_tappable_element'
./features/support/../../lib/icuke/simulator_driver.rb:61:in
`tap'
./features/support/../../lib/icuke/simulator_driver.rb:129:in
`type'
./features/support/../../lib/icuke/simulator_driver.rb:127:in
`each'
./features/support/../../lib/icuke/simulator_driver.rb:127:in
`type'


The big thing that's glaring at me is that there is no keyboard in the
"screen" at all, but I can clearly see it in the sim when it is
running. I'm thinking that's my big problem.

I've enabled "Enable access for assistive devices" in my Universal
Access prefpane.
I've turned on the Accessibility Inspector in my simulator, and when I
inspect each keyboard key they each have their respective labels (the
"p" key definitely has a "p" label, the same with the rest).
I've checked the XIB and Accessibility is Enabled for the Email
UITextField, the UIView that contains it (Login), and also the UIView
that loaded that Login View as a modal dialog.

What else do I need to do to make this typing thing happen? :)
Reply all
Reply to author
Forward
0 new messages