RoboDirective class
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.
Constructors
-
RoboDirective({required Input<
RoboDirectiveActionType> actionType, Input<String> ? inputText, required Input<String> resourceName}) -
Creates a new RoboDirective.
actionTypeThe type of action that Robo should perform on the specified element.inputTextThe 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.resourceNameThe 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.htmlconst -
RoboDirective.fromMap(Map<
String, dynamic> map) -
factory
Properties
-
actionType
→ Input<
RoboDirectiveActionType> -
The type of action that Robo should perform on the specified element.
final
- hashCode → int
-
The hash code for this object.
no setterinherited
-
inputText
→ Input<
String> ? -
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.
final
-
resourceName
→ Input<
String> -
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
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toMap(
) → Map< String, dynamic> -
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited