Hi there! Are you looking for the official Deno documentation? Try docs.deno.com for all your Deno learning needs.

RoboDirective

import type { RoboDirective } from "https://googleapis.deno.dev/v1/testing:v1.ts";

Directs Robo to interact with a specific UI element if it is encountered during the crawl. Currently, Robo can perform text entry or element click.

interface RoboDirective {
actionType?:
| "ACTION_TYPE_UNSPECIFIED"
| "SINGLE_CLICK"
| "ENTER_TEXT"
| "IGNORE";
inputText?: string;
resourceName?: string;
}

§Properties

§
actionType?: "ACTION_TYPE_UNSPECIFIED" | "SINGLE_CLICK" | "ENTER_TEXT" | "IGNORE"
[src]

Required. The type of action that Robo should perform on the specified element.

§
inputText?: string
[src]

The text that Robo is directed to set. If left empty, the directive will be treated as a CLICK on the element matching the resource_name.

§
resourceName?: string
[src]

Required. The android resource name of the target UI element. For example, in Java: R.string.foo in xml: @string/foo Only the "foo" part is needed. Reference doc: https://developer.android.com/guide/topics/resources/accessing-resources.html