Contents

snapshot()

Returns a snapshot of an element’s attributes and descendant user interface hierarchy.

Declaration

func snapshot() throws -> any XCUIElementSnapshot

Return Value

A snapshot of an element’s attributes and descendant user interface hierarchy.