touch method seems not to be working

167 views
Skip to first unread message

Dark Wizard

unread,
Apr 11, 2011, 6:42:16 AM4/11/11
to Frank
Hi,

I have to touch a splash-screen of my app and i will be navigated to
first page of my app.

I can do it manually in simulator and it works perfectly fine.

In frank, i have a method which will touch the splash screen

It is like this, touch('"imageView marked:'splash-image'")

"splash-image" is the value of accessibilityLabel for the required
UIImageView class.

When i flash the query in symbiote i get a success response, which
means, the query is alright, is it?

But when i run my cucumber tests, the touch step will pass, but it
wont touch anything on simulator.

Simulator continues to show the splash-image without navigating to the
first page of my app.

Any help?

Pete Hodgson

unread,
Apr 11, 2011, 11:29:08 AM4/11/11
to frank-...@googlegroups.com, Dark Wizard
I think that it's not actually the UIImageView that you want to send the touch to. IIRC, UIImageView's are not UIControls, so they can't receive touch events directly. I would guess that the 'touch the image to continue' functionality is implemented by having a hidden button overlaying the UIImageView. Alternatively, a gesture recognizer might have been attached to the UIImageView. Can you check the implementation and find out how the touch on the splash screen is detected?

Cheers,
Pete

Rodney Degracia

unread,
Apr 11, 2011, 12:24:28 PM4/11/11
to frank-...@googlegroups.com

I have a UISpec patch that will enable you to touch UIImageViews at a specified x,y coordinate

Let me know and I'll send it to you.


Rodney 


Pete Hodgson

unread,
Apr 11, 2011, 12:47:52 PM4/11/11
to frank-...@googlegroups.com

Hi Rodney,

Did you ever hear back from the UISpec folks about getting that patch incorporated?

Cheers,
Pete
--
Typed on a teeny tiny keyboard

Rodney Degracia

unread,
Apr 11, 2011, 1:40:34 PM4/11/11
to frank-...@googlegroups.com

Pete,

Unfortunately, no.  Maybe it got caught in their spam filter?


Rodney 



subregi

unread,
Apr 11, 2011, 10:18:20 PM4/11/11
to Frank
Hi,

We are facing a very similar issue and have spent several days in vain
trying to figure it out.
The rules to check for the view presence works (Then I should see <>)
The manual flash works but unable to drive the navigation (we are
using Three20 UI controls).
Would very much appreciate any valuable tips.

Best regards,
Riaz

Here's a DOM-extract (class|accessibilityLabel)

"class": "TTNavigatorWindow",
"class": "UILayoutContainerView",
"class": "UINavigationTransitionView",
"class": "UIViewControllerWrapperView",
"class": "UIView",
"class": "TTLauncherView",
"accessibilityLabel": null,
"class": "TTLauncherButton", <===
navigation needed here
"accessibilityLabel": "Item1",
"class": "TTLauncherButton", <===
navigation needed here
"accessibilityLabel": "Item2",
"class": "TTLauncherButton", <===
navigation needed here
"accessibilityLabel": "Item3",
"class": "TTLauncherScrollView",
"class": "TTPageControl",
"accessibilityLabel": "launcherPageDot:",
"accessibilityLabel": null,
"accessibilityLabel": null,
"accessibilityLabel": null,
"accessibilityLabel": null,
"class": "UINavigationBar",
"class": "UINavigationItemView",
"accessibilityLabel": "Items",
"accessibilityLabel": "Add",
"class": "UIImageView",
"accessibilityLabel": null,
"class": "UIImageView",
"accessibilityLabel": null,
"class": "UIButtonLabel",
"accessibilityLabel": null,
"class": "UINavigationButton",
"accessibilityLabel": "Edit",
"class": "UIImageView",
"accessibilityLabel": null,
"class": "UIImageView",
"accessibilityLabel": null,
"class": "UIButtonLabel",
"accessibilityLabel": "Edit",
"class": "UINavigationButton",
"accessibilityLabel": null,
"accessibilityLabel": null,
"accessibilityLabel": null,

subregi

unread,
Apr 11, 2011, 10:54:38 PM4/11/11
to Frank
Forgot to mention that the Views have gestures implemented (I don't
see hidden UIbuttons) using TouchesBegan and TouchesEnded

- Riaz

Dark Wizard

unread,
Apr 12, 2011, 1:02:08 AM4/12/11
to Frank
I have checked the implementation. We have attached a gesture
recognizer to UIImageView.

Here is the DOM,

skipsSubviewEnumeration: 0
gesturesEnabled: 1
accessibilityValue: (null)
windowLevel: 0.000000
deliversTouchesForGesturesToSuperview: 1
subviews
0
skipsSubviewEnumeration: 0
gesturesEnabled: 1
accessibilityValue: (null)
class: UIView
deliversTouchesForGesturesToSuperview: 1
subviews
0
skipsSubviewEnumeration: 0
gesturesEnabled: 1
accessibilityValue: (null)
class: UIView
deliversTouchesForGesturesToSuperview: 1
subviews
0
skipsSubviewEnumeration: 0
gesturesEnabled: 1
accessibilityValue: (null)
highlightedImage: (null)
drawMode: 0
deliversTouchesForGesturesToSuperview: 1
subviews
class: UIImageView
inputView: (null)
animationDuration: 0.000000
_textSelectingContainer: (null)
undoManager: COMPLEX TYPE
animationImages: (null)
accessibilityFrame: COMPLEX TYPE
tag: 0
accessibilityLanguage: (null)
accessibilityHint: (null)
_editingDelegate: (null)
isAccessibilityElement: 0
highlightedAnimationImages: (null)
isUserInteractionEnabled: 0
animationRepeatCount: 0
isHighlighted: 0
layer: COMPLEX TYPE
accessibilityLabel: splash-image
image: COMPLEX TYPE
_responderForEditing: COMPLEX TYPE
inputAccessoryView: (null)
1
skipsSubviewEnumeration: 0
gesturesEnabled: 1
accessibilityValue: (null)
highlightedImage: (null)
drawMode: 0
deliversTouchesForGesturesToSuperview: 1
subviews
class: UIImageView
inputView: (null)
animationDuration: 1.000000
_textSelectingContainer: (null)
undoManager: COMPLEX TYPE
animationImages: COMPLEX TYPE
accessibilityFrame: COMPLEX TYPE
tag: 0
accessibilityLanguage: (null)
accessibilityHint: (null)
_editingDelegate: (null)
isAccessibilityElement: 0
highlightedAnimationImages: (null)
isUserInteractionEnabled: 0
animationRepeatCount: 0
isHighlighted: 0
layer: COMPLEX TYPE
accessibilityLabel
image: (null)
_responderForEditing: COMPLEX TYPE
inputAccessoryView: (null)
_textSelectingContainer: (null)
inputView: (null)
undoManager: COMPLEX TYPE
accessibilityFrame: COMPLEX TYPE
tag: 0
accessibilityLanguage: (null)
accessibilityHint: (null)
_editingDelegate: (null)
isAccessibilityElement: 0
isUserInteractionEnabled: 1
accessibilityLabel
layer: COMPLEX TYPE
_responderForEditing: COMPLEX TYPE
inputAccessoryView: (null)
_textSelectingContainer: (null)
inputView: (null)
undoManager: COMPLEX TYPE
accessibilityFrame: COMPLEX TYPE
tag: 0
accessibilityLanguage: (null)
accessibilityHint: (null)
_editingDelegate: (null)
isAccessibilityElement: 0
isUserInteractionEnabled: 1
accessibilityLabel
layer: COMPLEX TYPE
_responderForEditing: COMPLEX TYPE
inputAccessoryView: (null)
class: UIWindow
_textSelectingContainer: (null)
inputView: (null)
isKeyWindow: 1
undoManager: COMPLEX TYPE
accessibilityFrame: COMPLEX TYPE
tag: 0
accessibilityLanguage: (null)
accessibilityHint: (null)
_editingDelegate: (null)
isAccessibilityElement: 0
screen: COMPLEX TYPE
rootViewController: (null)
isUserInteractionEnabled: 1
accessibilityLabel
layer: COMPLEX TYPE
_responderForEditing: COMPLEX TYPE
inputAccessoryView: (null)

Dark Wizard

unread,
Apr 12, 2011, 1:03:13 AM4/12/11
to Frank
Hi Rodney,

It would be great if you can send me the UISpec patch.

Pete Hodgson

unread,
Apr 12, 2011, 1:08:30 AM4/12/11
to frank-...@googlegroups.com, Rodney Degracia
Seems like your patch is a popular addition Rodney :)

I'll try again to get a response from the UISpec group re: adding this functionality to UISpec. In the meantime, maybe it would be worth creating a 'sneak-preview' fork of Frank with these UISpec enhancements added. If anyone wants to do that I'd be happy to give them commit rights to the repo.

Cheers,
Pete
Reply all
Reply to author
Forward
0 new messages