Class: Google::Apis::TestingV1::RoboDirective
- Inherits:
 - 
      Object
      
        
- Object
 - Google::Apis::TestingV1::RoboDirective
 
 
- Includes:
 - Core::Hashable, Core::JsonObjectSupport
 
- Defined in:
 - generated/google/apis/testing_v1/classes.rb,
generated/google/apis/testing_v1/representations.rb,
generated/google/apis/testing_v1/representations.rb 
Overview
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.
Instance Attribute Summary collapse
- 
  
    
      #action_type  ⇒ String 
    
    
  
  
  
  
    
    
  
  
  
  
  
  
    
The type of action that Robo should perform on the specified element.
 - 
  
    
      #input_text  ⇒ String 
    
    
  
  
  
  
    
    
  
  
  
  
  
  
    
The text that Robo is directed to set.
 - 
  
    
      #resource_name  ⇒ 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.
 
Instance Method Summary collapse
- 
  
    
      #initialize(**args)  ⇒ RoboDirective 
    
    
  
  
  
    constructor
  
  
  
  
  
  
  
    
A new instance of RoboDirective.
 - 
  
    
      #update!(**args)  ⇒ Object 
    
    
  
  
  
  
  
  
  
  
  
    
Update properties of this object.
 
Methods included from Core::JsonObjectSupport
Methods included from Core::Hashable
Constructor Details
#initialize(**args) ⇒ RoboDirective
Returns a new instance of RoboDirective
      1650 1651 1652  | 
    
      # File 'generated/google/apis/testing_v1/classes.rb', line 1650 def initialize(**args) update!(**args) end  | 
  
Instance Attribute Details
#action_type ⇒ String
The type of action that Robo should perform on the specified element.
Required.
Corresponds to the JSON property actionType
      1629 1630 1631  | 
    
      # File 'generated/google/apis/testing_v1/classes.rb', line 1629 def action_type @action_type end  | 
  
#input_text ⇒ 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.
Optional
Corresponds to the JSON property inputText
      1636 1637 1638  | 
    
      # File 'generated/google/apis/testing_v1/classes.rb', line 1636 def input_text @input_text end  | 
  
#resource_name ⇒ 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
Required
Corresponds to the JSON property resourceName
      1648 1649 1650  | 
    
      # File 'generated/google/apis/testing_v1/classes.rb', line 1648 def resource_name @resource_name end  | 
  
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
      1655 1656 1657 1658 1659  | 
    
      # File 'generated/google/apis/testing_v1/classes.rb', line 1655 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  |