This site is in read only mode. Please continue to browse, but replying, likes, and other actions are disabled for now.
1 / 3
Jul 2017

I am working on a iOS application developed in React Native which includes some scenario where we have to handle DatePicker but It seems like datepicker object class (XCUIElementTypeOther) is different as in other iOS application (UIDatePickerWheel)

Can anyone suggest how to handle this (snapshot attached ) ?

  • created

    Jun '17
  • last reply

    Oct '18
  • 2

    replies

  • 653

    views

  • 3

    users

  • 1

    link

Hi,

Looks like this is a developer issue not Appium issue. In my application too have date selection and its working fine.

Ask the dev team to make element as "XCUIElementTypePickerWheel" and sendKeys or setValues method will work.

//code:
@iOSFindBy(className = "XCUIElementTypePickerWheel")
private List iosDatePickerWheel;

iosDatePickerWheel.sendKeys(keys)
iosDatePickerWheel.setValue(keys)

Regards
Blogger1

1 year later

Hey,

Do you know how to change the type for React Native DatePickerIOS control? As we are using React Native we don’t have extend for the control I guess.

Thank you.