Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Add support for picker views (UIPickerView, UIDatePicker) #308

Closed
hiaw opened this issue Oct 4, 2017 · 2 comments
Closed

Add support for picker views (UIPickerView, UIDatePicker) #308

hiaw opened this issue Oct 4, 2017 · 2 comments

Comments

@hiaw
Copy link
Contributor

hiaw commented Oct 4, 2017

I'm unable to scroll a standard iOS picker.

Description

Using the following code I was not able to scroll a standard picker.

await element(by.type('RCTPicker')).scroll(100, 'up')

I have also tried

await element(by.type('RCTPicker')).atIndex(0).scroll(100, 'up')
await element(by.type('UIPickerTableView')).atIndex(0).scroll(100, 'up')

screen shot 2017-10-04 at 2 49 00 pm

Steps to Reproduce

Open up a standard picker and trying to scroll it.

await element(by.type('RCTPicker')).scroll(100, 'up')

screen shot 2017-10-04 at 2 49 15 pm

I used the Xcode View hierachy tool to capture this tree, identifying the 3 UIPickerTableView as per error message.

screen shot 2017-10-04 at 2 50 02 pm

Node, Device, Xcode and macOS Versions

  • Node: 8.6.0
  • Device: Macbook Pro, iPhone 7
  • Xcode: 8.3.3
  • macOS: 10.12.6
@aamorozov
Copy link

@hiaw I had similar issue but I think it is more related to the datepicker itself, as it's not wrapped up in any scrollview and hence the component itself is not scrollable

@LeoNatan LeoNatan changed the title unable to scroll on a standard picker Add support for picker views (UIPickerView, UIDatePicker) Nov 14, 2017
@LeoNatan LeoNatan closed this as completed May 3, 2018
@LeoNatan
Copy link
Contributor

LeoNatan commented May 3, 2018

This was implemented already.

@wix wix locked and limited conversation to collaborators Jul 23, 2018
# for free to subscribe to this conversation on GitHub. Already have an account? #.
Projects
None yet
Development

No branches or pull requests

3 participants