{"id":21885795,"url":"https://github.com/danielcarlosce/xcuitestexample","last_synced_at":"2025-07-16T12:07:22.985Z","repository":{"id":146759546,"uuid":"112848012","full_name":"danielCarlosCE/XCUITestExample","owner":"danielCarlosCE","description":"Guide to use XCUITest on iOS applications","archived":false,"fork":false,"pushed_at":"2017-12-02T14:40:29.000Z","size":159,"stargazers_count":16,"open_issues_count":0,"forks_count":3,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-04-15T08:02:00.827Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Swift","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/danielCarlosCE.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2017-12-02T14:21:39.000Z","updated_at":"2022-02-06T19:31:44.000Z","dependencies_parsed_at":"2023-05-21T06:00:38.634Z","dependency_job_id":null,"html_url":"https://github.com/danielCarlosCE/XCUITestExample","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/danielCarlosCE/XCUITestExample","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/danielCarlosCE%2FXCUITestExample","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/danielCarlosCE%2FXCUITestExample/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/danielCarlosCE%2FXCUITestExample/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/danielCarlosCE%2FXCUITestExample/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/danielCarlosCE","download_url":"https://codeload.github.com/danielCarlosCE/XCUITestExample/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/danielCarlosCE%2FXCUITestExample/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":265508342,"owners_count":23779128,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-11-28T10:29:26.911Z","updated_at":"2025-07-16T12:07:22.942Z","avatar_url":"https://github.com/danielCarlosCE.png","language":"Swift","funding_links":[],"categories":[],"sub_categories":[],"readme":"# XCUITestExample\nTests more readable with Page Objects and Method Chaining :\n```\nfunc testSearchResultFlow() {\n  SearchPage()\n      .type(query: \"XCode\") { self.takeScreenShot() }\n      .tapOk()\n      .getTitle {\n          XCTAssertEqual(\"Result for XCode\", $0)\n      }\n}\n```\n\nEvery Page subclass must override the rootElement\n```\nclass ResultPage: Page {\n  override var rootElement: XCUIElement {\n    return app.otherElements[\"view_result\"]\n  }\n```\n\n\nUse Accessibility Identifiers instead of elements' values\n\n`app.buttons[\"btn_send\"].tap()`\n\n![accessibility identifiers](Resources/2.png)\n\n\nDisable automatic screenshots.\n\n![disable automatic screenshots](Resources/1.png)\n\nLog your tests properly to make a better report.\n\n![test report](Resources/3.png)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdanielcarlosce%2Fxcuitestexample","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdanielcarlosce%2Fxcuitestexample","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdanielcarlosce%2Fxcuitestexample/lists"}