prisma-labs-dev/apple-skills

xcuitest

API reference: XCUITest. Query for element queries, waiting patterns, Swift 6 @MainActor, assertions, screenshots, launch arguments.

First seen Mar 22, 2026

Installation

$ npx skills add prisma-labs-dev/apple-skills --skill xcuitest

Similar popular skills

Related neighbors and high-traction skills in the same topics — useful to compare before installing.

Also in this package

Other skills from prisma-labs-dev/apple-skills · top by installs.

npx skills add prisma-labs-dev/apple-skills

Browse all from prisma-labs-dev/apple-skills

More details

Agent compatibility

Declared targets from SKILL.md / docs. Unmarked agents are not listed — the skill may still install via the CLI.

Claude Code Not declared
Cursor Not declared
Codex Not declared
GitHub Copilot Not declared
Windsurf Not declared
Gemini CLI Not declared
Cline Not declared
OpenCode Not declared

Repository health

Stars 325
License LICENSE
Default branch main
Open issues 0
Status Active

Package contents

Files included with this skill beyond the listing page.

  • skill md SKILL.md 5,658 B
  • docs SUMMARY.md 148 B

History

  1. First seen on skills.sh
  2. First recorded snapshot · 566 installs

SKILL.md

XCUITest Reference

Comprehensive reference for writing reliable XCUITest UI tests in Swift 6.

Quick Reference

// Basic test structure
@MainActor
final class MyUITests: XCTestCase {
    var app: XCUIApplication!

    override func setUp() {
        super.setUp()
        continueAfterFailure = false
        app = XCUIApplication()
        app.launch()
    }

    func testExample() {
        let button = app.buttons["Submit"]
        XCTAssertTrue(button.waitForExistence(timeout: 5))
        button.tap()
    }
}

Topic Guides

Curated guidance with code examples (grep-friendly):

File Content
[element-queries.md](element-queries.md) Core API classes: XCUIApplication, XCUIElement, XCUIElementQuery, XCUICoordinate
[interactions.md](interactions.md) Taps, presses, text input, swipes, coordinate-based and other gestures
[waiting.md](waiting.md) waitForExistence, XCTWaiter, non-existence, property waits, Xcode 26 KeyPath waits
[swift6-concurrency.md](swift6-concurrency.md) Swift 6 strict concurrency: @MainActor test classes, async setUp/tearDown, nonisolated
[assertions.md](assertions.md) XCTAssert patterns, custom messages, existence checks
[screenshots.md](screenshots.md) Screenshots, XCTAttachment, screenshot-on-failure, extracting from .xcresult
[launch-arguments.md](launch-arguments.md) Launch arguments/environment, UserDefaults override, localization and accessibility testing
[permissions.md](permissions.md) resetAuthorizationStatus, XCUIProtectedResource, interruption monitors, springboard/system alerts
[test-helpers.md](test-helpers.md) Page Object Model, reusable helpers, timeout constants
[troubleshooting.md](troubleshooting.md) Common failures (element not found, flaky tests) and what's new in Xcode 26 / iOS 26
[patterns.md](patterns.md) Advanced patterns: base test class, system dialogs, scroll/wait, debugging, test organization

Downloaded Reference Files

Apple documentation pages available locally:

File Content
[xctest-index.md](xctest-index.md) Full XCTest framework index
[xcuiautomation-index.md](xcuiautomation-index.md) Full XCUIAutomation framework index
[xcuiapplication.md](xcuiapplication.md) XCUIApplication class
[xcuielement.md](xcuielement.md) XCUIElement class
[xcuielementquery.md](xcuielementquery.md) XCUIElementQuery class
[xcuicoordinate.md](xcuicoordinate.md) XCUICoordinate class
[xcuiprotectedresource.md](xcuiprotectedresource.md) XCUIProtectedResource enum
[xcuiscreenshot.md](xcuiscreenshot.md) XCUIScreenshot class

Sources

Apple Documentation

WWDC Sessions

Community Resources

Fetching More Apple Docs

  1. Search this skill's local .md files first.
  2. If the topic is not here, check the other installed Apple skills you have available by their names, descriptions, or SKILL.md frontmatter, then grep their local files. This is faster and uses less context than fetching new docs from the internet.
  3. If no installed skill has the page, use the relevant documentation path from the local XCTest or XCUIAutomation indexes with the sosumi.ai Markdown mirror. For example, /documentation/xcuiautomation/xcuielement maps to https://sosumi.ai/documentation/xcuiautomation/xcuielement.