Hierarchy

class Hierarchy(val xml: String) : Artifact(source)

The accessibility hierarchy as XML (Device.dumpHierarchy). Diagnostic only: selectors never use it, so keep it out of assertions.

Constructors

Link copied to clipboard
constructor(xml: String)

Properties

Link copied to clipboard
open override val bytes: ByteArray

The serialized form: PNG, UTF-8 XML, UTF-8 JSON or UTF-8 text.

Link copied to clipboard
open override val extension: String

The usual file extension for bytes, without the dot, e.g. png.

Link copied to clipboard
open override val mediaType: String

The IANA media type of bytes, e.g. image/png.

Link copied to clipboard
val xml: String

Functions

Link copied to clipboard
open operator override fun equals(other: Any?): Boolean
Link copied to clipboard
open override fun hashCode(): Int
Link copied to clipboard
open fun save(path: Path): Path

Writes bytes to path (parent directories are created) and returns path.

Link copied to clipboard
open override fun toString(): String