|
id : "add thumb up to the video" |
|
name : "Imdb interact Task - add thumb up to the video" |
|
description: "This task is to add thumb up to the video" |
|
|
|
|
|
|
|
|
|
reset_steps: { |
|
adb_call: { |
|
force_stop: { |
|
package_name: "com.imdb.mobile" |
|
} |
|
} |
|
} |
|
|
|
|
|
|
|
reset_steps: { |
|
success_condition: { |
|
num_retries: 10 |
|
wait_for_app_screen: { |
|
app_screen: { |
|
activity: "com.imdb.mobile/com.imdb.mobile.HomeActivity" |
|
} |
|
timeout_sec: 10.0 |
|
} |
|
} |
|
adb_call: { |
|
start_activity: { |
|
full_activity: "com.imdb.mobile/com.imdb.mobile.HomeActivity" |
|
} |
|
} |
|
} |
|
|
|
expected_app_screen: { |
|
|
|
} |
|
|
|
max_num_steps: 5000 |
|
|
|
|
|
event_sources: { |
|
view_hierarchy_event: { |
|
selector: '.$"widget.ImageView"#$"volume_button"' |
|
|
|
} |
|
id: 1 |
|
} |
|
|
|
event_sources: { |
|
view_hierarchy_event: { |
|
selector: '.$"widget.TextView"#$"login_text"' |
|
properties: { |
|
property_name: "text" |
|
pattern: "Please sign in to add an thumb up reaction." |
|
} |
|
} |
|
id: 2 |
|
} |
|
|
|
|
|
|
|
event_slots: { |
|
|
|
reward_listener:{ |
|
type:OR |
|
events:{ |
|
event:{ |
|
type:OR |
|
id:10 |
|
events:{ |
|
id:1 |
|
} |
|
events:{ |
|
id:1 |
|
} |
|
transformation:"y=1" |
|
} |
|
} |
|
events:{ |
|
event:{ |
|
type:OR |
|
id:11 |
|
events:{ |
|
id:2 |
|
} |
|
events:{ |
|
id:2 |
|
} |
|
transformation:"y=1" |
|
} |
|
|
|
} |
|
} |
|
|
|
|
|
episode_end_listener: { |
|
type: OR |
|
id:12 |
|
events: { |
|
id: 2 |
|
} |
|
events: { |
|
id: 2 |
|
} |
|
transformation: "y = True" |
|
} |
|
|
|
instruction_listener: { |
|
type: OR |
|
events: { |
|
event: { |
|
events: { |
|
id: 10 |
|
} |
|
transformation: "y = [\'Good Job, add a thumb up to it\']" |
|
} |
|
} |
|
|
|
} |
|
} |
|
|
|
command: "Navigate to the video part (hint: four navigations nodes represent :home,search,videos,profile)" |
|
|
|
|
|
vocabulary: [] |