Package-level declarations

Types

Link copied to clipboard
@Serializable
data class AssertVisibleByNodeIdTrailblazeTool(val reason: String = "", val nodeId: Long) : DelegatingTrailblazeTool
@Serializable
data class AssertVisibleWithAccessibilityTextTrailblazeTool(val accessibilityText: String, val id: String? = null, val index: Int = 0, val enabled: Boolean? = null, val selected: Boolean? = null) : MapsToMaestroCommands
@Serializable
data class AssertVisibleWithResourceIdTrailblazeTool(val resourceId: String, val accessibilityText: String? = null, val index: Int = 0, val enabled: Boolean? = null, val selected: Boolean? = null) : MapsToMaestroCommands
Link copied to clipboard
@Serializable
data class AssertVisibleWithTextTrailblazeTool(val text: String, val index: Int = 0, val id: String? = null, val enabled: Boolean? = null, val selected: Boolean? = null) : MapsToMaestroCommands
Link copied to clipboard
@Serializable
data class BooleanAssertionTrailblazeTool(val reason: String, val result: Boolean) : TrailblazeTool

Command for boolean assertions on UI elements. Returns true/false with explanation of why the assertion passed or failed.

Link copied to clipboard
@Serializable
data class ElementRetrieverTrailblazeTool(val identifier: String, val locatorType: ElementRetrieverTrailblazeTool.LocatorType, val value: String, val index: Int = 0, val success: Boolean = true, val reason: String = "") : TrailblazeTool

Command to retrieve a selector for an element based on the description. This command is specifically used by the TrailblazeElementComparator.

Link copied to clipboard
@Serializable
data class EraseTextTrailblazeTool(val charactersToErase: Int? = null) : MapsToMaestroCommands
Link copied to clipboard
Link copied to clipboard
@Serializable
data class InputTextTrailblazeTool(val text: String) : MapsToMaestroCommands
Link copied to clipboard
@Serializable
data class LaunchAppTrailblazeTool(val appId: String, val launchMode: LaunchAppTrailblazeTool.LaunchMode = LaunchMode.REINSTALL) : MapsToMaestroCommands
@Serializable
data class LongPressElementWithAccessibilityTextTrailblazeTool(val accessibilityText: String, val id: String? = null, val index: String? = null, val enabled: Boolean? = null, val selected: Boolean? = null) : MapsToMaestroCommands
Link copied to clipboard
@Serializable
data class LongPressOnElementWithTextTrailblazeTool(val text: String, val id: String? = null, val index: String? = null, val enabled: Boolean? = null, val selected: Boolean? = null) : MapsToMaestroCommands
Link copied to clipboard
@Serializable
data class ObjectiveStatusTrailblazeTool(val description: String, val explanation: String, val status: String) : TrailblazeTool
Link copied to clipboard
Link copied to clipboard
@Serializable
data class StopAppTrailblazeTool(val appId: String) : MapsToMaestroCommands
Link copied to clipboard
@Serializable
data class StringEvaluationTrailblazeTool(val reason: String, val result: String) : TrailblazeTool

Command for string evaluations on UI elements. Returns a string value with explanation of how it was determined.

Link copied to clipboard
@Serializable
class SwipeTrailblazeTool(val direction: String, val swipeOnElementText: String? = null) : MapsToMaestroCommands
Link copied to clipboard
@Serializable
data class TapOnElementByNodeIdTrailblazeTool(val reason: String = "", val nodeId: Long, val longPress: Boolean = false) : DelegatingTrailblazeTool
@Serializable
data class TapOnElementWithAccessiblityTextTrailblazeTool(val accessibilityText: String, val id: String? = null, val index: String? = null, val enabled: Boolean? = null, val selected: Boolean? = null) : MapsToMaestroCommands
Link copied to clipboard
@Serializable
data class TapOnElementWithTextTrailblazeTool(val text: String, val index: Int = 0, val id: String? = null, val enabled: Boolean? = null, val selected: Boolean? = null) : MapsToMaestroCommands
Link copied to clipboard
@Serializable
data class TapOnPointTrailblazeTool(val x: Int, val y: Int) : MapsToMaestroCommands
Link copied to clipboard
@Serializable
data class WaitForIdleSyncTrailblazeTool(val timeToWaitInSeconds: Int = 5) : MapsToMaestroCommands

Functions

Link copied to clipboard
fun findBestTapTrailblazeToolForNode(root: ViewHierarchyTreeNode, target: ViewHierarchyTreeNode, longPress: Boolean = false): ExecutableTrailblazeTool

Given the root of the view hierarchy and a target node, find the best TrailblazeTool for tapping. Prefers unique text, then unique accessibility text, then falls back to center point.