class Google::Apis::TestingV1::RoboDirective

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.

Attributes

action_type[RW]

Required. The type of action that Robo should perform on the specified element. Corresponds to the JSON property `actionType` @return [String]

input_text[RW]

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. Corresponds to the JSON property `inputText` @return [String]

resource_name[RW]

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: developer.android.com/guide/topics/resources/accessing- resources.html Corresponds to the JSON property `resourceName` @return [String]

Public Class Methods

new(**args) click to toggle source
# File lib/google/apis/testing_v1/classes.rb, line 1861
def initialize(**args)
   update!(**args)
end

Public Instance Methods

update!(**args) click to toggle source

Update properties of this object

# File lib/google/apis/testing_v1/classes.rb, line 1866
def update!(**args)
  @action_type = args[:action_type] if args.key?(:action_type)
  @input_text = args[:input_text] if args.key?(:input_text)
  @resource_name = args[:resource_name] if args.key?(:resource_name)
end