Support Photo Gallery
Opened this issue · 2 comments
roger-tan commented
tshort15-ford commented
Note in Xcode 12 Beta they've changed the label of each Photo to just "Photo" rather than included a timestamp etc., so you can use this:
func selectPhoto(atPosition position: Int) {
let selectedPhoto = Image(id: "Photo", index: position).underlyingXCUIElement
selectedPhoto.tap()
}
Unfortunately Image()
isn't Tappable
. Maybe there should be a check on where it is in the hierarchy too, so other Images named "Photo" won't be returned.
roger-tan commented
That's great news because UITesting with multilanguage was adding so much complexity between time format, image description.