Skip to content

How to tap on system photo picker #help-wanted #1272

Description

@lukaszkn

Any idea how to tap photo or at least cancel button on system photo picker?
I've tried:
[tester tapAccessibilityElement:]
[tester tapScreenAtPoint:]
[tester tapViewWithAccessibilityLabel:@"Cancel"];
[tester dismissPopover]

None of these above do anything.

(lldb) po [UIView printViewHierarchy]
Window level 0.000000 (key window)
...
|	UITransitionView
|	|	UIDimmingView
|	|	UIDropShadowView
|	|	|	_UIRoundedRectShadowView (not highlighted)
|	|	|	UIView
|	|	|	|	UIView
|	|	|	|	|	UILayoutContainerView
|	|	|	|	|	|	UINavigationTransitionView
|	|	|	|	|	|	|	UIViewControllerWrapperView
|	|	|	|	|	|	|	|	_UISizeTrackingView
|	|	|	|	|	|	|	|	|	_UIRemoteView, identifier: RemoteViewBridge
|	|	|	|	|	|	|	|	|	AXRemoteElement, label: (null), traits: none
|	|	|	|	|	|	UIToolbar, label: Toolbar, identifier: Toolbar (invisible)
|	|	|	|	|	|	|	_UIBarBackground
|	|	|	|	|	|	|	|	UIVisualEffectView
|	|	|	|	|	|	|	|	|	_UIVisualEffectBackdropView
|	|	|	|	|	|	|	|	_UIBarBackgroundShadowView
|	|	|	|	|	|	|	|	|	_UIBarBackgroundShadowContentImageView (not highlighted)

Window level 1.000000
UITextEffectsWindow
|	UIInputSetContainerView
|	|	UIInputSetHostView
|	_UITextEffectsRemoteView, identifier: RemoteViewBridge
|	AXRemoteElement, label: (null), traits: none

Simulator Screen Shot - iPhone SE (3rd generation)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions