Search code examples
iosxcodeios-simulatorios-ui-automationxcuitest

Is there a way to test Quick Actions using XCUITest?


I am using Xcode 11.3.1 and see that the quick actions are available in the simulator. Is there a way to test these using XCUITest? How can we launch the application and select one of these quick actions?

enter image description here


Solution

  • The bundle ID for the springboard is com.apple.springboard. You can interact with it as you would any other application.

    let springboard = XCUIApplication(bundleIdentifier: "com.apple.springboard")

    and then go from there. To discover its capabilities, enter a debug session and have at it.