snapshot()
Returns a snapshot of an element’s attributes and descendant user interface hierarchy.
Declaration
func snapshot() throws -> any XCUIElementSnapshotReturn Value
A snapshot of an element’s attributes and descendant user interface hierarchy.