Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support Photo Gallery #126

Open
roger-tan opened this issue Aug 11, 2020 · 2 comments
Open

Support Photo Gallery #126

roger-tan opened this issue Aug 11, 2020 · 2 comments

Comments

@roger-tan
Copy link
Contributor

From a previous project of a client. We built our Gallery Screen Helper in order to automate the task as one of the forms required to have a picture.

It will be great to have it.

Screenshot 2020-08-11 at 16 58 36

@tshort15-ford
Copy link

tshort15-ford commented Aug 20, 2020

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
Copy link
Contributor Author

That's great news because UITesting with multilanguage was adding so much complexity between time format, image description.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants