XCUIScreenshotProviding
A type that can provide a screenshot of its current UI state.
Declaration
@MainActor protocol XCUIScreenshotProviding : NSObjectProtocolOverview
Call this protocol’s screenshot() method on an XCUIScreen or XCUIElement to capture a screenshot of its current UI state.