init(screenshot:)
Creates an attachment containing a PNG representation of the provided screenshot.
Declaration
convenience init(screenshot: XCUIScreenshot)Parameters
- screenshot:
The screenshot to wrap as an attachment.
Discussion
Creates an attachment with a uniformTypeIdentifier of "public.png". Equivalent to calling init(screenshot:quality:) with a quality value of XCTAttachment.ImageQuality.original.