Tried it but the query somehow can't find the picker wheel
(scrollview).
irb(main):011:0> q="datepicker scrollview index:1"
=> "datepicker scrollview index:1"
irb(main):012:0> playback "picker_year_up", :query => q
Saved screenshot: screenshot_irb.png
RuntimeError: playback failed because: query datepicker scrollview
index:1 found no views. Is accessibility enabled?
I'll wait and see what you come up with tomorrow - it's late
anyways ;-)
Thanks,
/Esben
On 24 Apr., 21:56, Krukow <
karl.kru...@gmail.com> wrote:
> I'll create an api for it tomorrow. If you can't wait for that you can
> easily create a custom step by putting together the following pieces.
>
> piece 1: getting the currently selected date (as a string)
>
> docs:
https://github.com/calabash/calabash-ios/wiki/01-Getting-started-guide
> (explore interactively section)
>
> code:
> query("datePicker", "date").first
>
> piece 2: Recording a touch event sequence
> docs:
https://github.com/calabash/calabash-ios/wiki/04-Touch-recording-and-...