Skip to content

[Bug]: Unable to automate datepicker android #935

@towfurious

Description

@towfurious

Describe the bug

Hello, i'm unable to automate date picker using detox, i can't see DAY, HOUR, MIN in hierarchy, but they presented in view here https://github.com/henninghall/react-native-date-picker/blob/master/android/src/main/res/layout/native_picker.xml
any chance to fix it?
Thank you.
Image

Expected behavior

View can be automated

Operating System

  • Android
  • iOS

React Native Version

0.73

Expo Version (if applicable)

No response

react-native-date-picker version

5.0.13

React Native Architecture

  • Old Architecture (Paper)
  • New Architecture (Fabric)

Relevant log output

Test Failed: Action will not be performed because the target view does not match one or more of the following constraints:
    (is assignable from class <class android.widget.DatePicker> and (view has effective visibility <VISIBLE> and view.getGlobalVisibleRect() to return non-empty rectangle))
    Target view: "PickerView{id=23499, desc=DateTimePicker, visibility=VISIBLE, width=832, height=482, has-focus=false, has-focusable=true, has-window-focus=true, is-clickable=false, is-enabled=true, is-focused=false, is-focusable=false, is-layout-requested=false, is-selected=false, layout-params=android.view.ViewGroup$LayoutParams@YYYYYY, tag=DateTimePicker, root-is-layout-requested=false, has-input-connection=false, x=0.0, y=0.0, child-count=1}"

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions