I'm trying to select a value from a UIPickerWheel on my app. The picker wheel pops up when I click on a date field and the values are Month (January, February,...), Date (1,2,...) and Year (2013, 2012...)
I get the correct value when I do the following
**
selectedvalue = target.frontMostApp().mainWindow().pickers()[0].wheels()[0].value();
UIALogger.logDebug(selectedValue)
**
However, when I try to tap on the wheel by using the following code:
target.frontMostApp().mainWindow().pickers()[0].wheels()[0].tap();
I get an error that states - target.frontMostApp().mainWindow().pickers()[0].wheels()[0] could not be tapped because the element is not visible on line xxx of yyyyscript
I checked other threads on UIAPickerWheel and this particular step seems simple enough. However, I'm baffled as the value is being retrieved from the wheel but tapping is not being done
Any help would be greatly appreciated!
Thanks and regards, Vinay
I have this exact same issue, the datepicker is not in the tree
The DOB textfield has the inputView set to datepick
By using Reveal I can see the datepicker is now under uitexteffectsview
To basically answer my own issue and yours with mechanic.js you can select all uipickers with this
I managed to get a full log by running this
Here is the full log