EarlGrey icon indicating copy to clipboard operation
EarlGrey copied to clipboard

grey_setPickerColumnToValue action does not work for SwiftUI Picker

Open ileon12 opened this issue 2 years ago • 1 comments

Hello! When trying to select a determined value on a SwiftUI Picker wheel using grey_setPickerColumnToValue(), I get the following error:

"UIPickerView does not contain desired value!"

Even though the value does exist on the picker.

You can use this sample to reproduce Xcode: 13.2.1 Device: iPhone 7 plus (iOS 15.1)

Appreciate any help.

ileon12 avatar Jan 11 '22 19:01 ileon12

This is related to issue #1679. The existing matchers in EarlGrey work for UIKit views only and I can't figure out right now how to write custom actions and matchers for SwiftUI views.

adil-hussain-84 avatar Jan 12 '22 10:01 adil-hussain-84