You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
public let id: String?
public let index: Int
public let parent: Element
public let type: XCUIElement.ElementType = .datePicker
/// Returns the number of wheels the picker contains.
public var numberOfWheels: Int { return underlyingXCUIElement.pickerWheels.count }
public init(id: String, index: Int = 0, parent: Element = App.shared) {
self.id = id
self.index = index
self.parent = parent
}
public func wheel(_ index: Int) -> Wheel {
return Wheel(index: index, picker: self)
}
}
public extension DatePicker {
struct Wheel: Element, ValueRepresentable, Adjustable {
public let id: String? = nil
public let index: Int
public let parent: Element
public let type: XCUIElement.ElementType = .pickerWheel
public var value: String { return underlyingXCUIElement.value as? String ?? "" }
public init(index: Int, picker: DatePicker) {
self.index = index
self.parent = picker
}
public func adjust(to newValue: String) {
underlyingXCUIElement.adjust(toPickerWheelValue: newValue)
}
}
}
The text was updated successfully, but these errors were encountered:
public struct DatePicker: Element {
}
public extension DatePicker {
}
The text was updated successfully, but these errors were encountered: