|
id:"get_in_Sanguoyanyi_group" |
|
name :"Douban Search Task - Sanguoyanyi Group Check" |
|
description :"Get in the page of Sanguoyanyi Group" |
|
|
|
|
|
|
|
reset_steps: { |
|
adb_call: { |
|
force_stop: { |
|
package_name: "com.douban.frodo" |
|
} |
|
} |
|
} |
|
|
|
|
|
|
|
reset_steps: { |
|
success_condition: { |
|
num_retries: 10 |
|
wait_for_app_screen: { |
|
app_screen: { |
|
activity: "com.douban.frodo/com.douban.frodo.activity.SplashActivity" |
|
} |
|
timeout_sec: 10.0 |
|
} |
|
} |
|
adb_call: { |
|
start_activity: { |
|
full_activity: "com.douban.frodo/com.douban.frodo.activity.SplashActivity" |
|
} |
|
} |
|
} |
|
|
|
|
|
expected_app_screen: { |
|
|
|
} |
|
|
|
max_num_steps: 5000 |
|
|
|
|
|
event_sources: { |
|
text_detect: { |
|
expect: "取消" |
|
rect: { |
|
x0: 0.87 |
|
y0: 0.048 |
|
x1: 0.97 |
|
y1: 0.085 |
|
} |
|
} |
|
id: 1 |
|
} |
|
|
|
event_sources: { |
|
view_hierarchy_event: { |
|
selector: '#$"com.douban.frodo:id/cancel".$"TextView"' |
|
properties: { |
|
property_name: "text" |
|
pattern: "取消" |
|
} |
|
properties: { |
|
property_name: "left" |
|
sign:EQ |
|
integer:912 |
|
} |
|
} |
|
id: 2 |
|
} |
|
|
|
event_sources: { |
|
text_detect: { |
|
expect: "讨论列表" |
|
rect: { |
|
x0: 0 |
|
y0: 0.36 |
|
x1: 0.3 |
|
y1: 0.42 |
|
} |
|
} |
|
id: 3 |
|
} |
|
|
|
|
|
|
|
event_slots:{ |
|
reward_listener:{ |
|
type:OR |
|
events:{ |
|
event:{ |
|
type:OR |
|
id:8 |
|
events:{ |
|
id:1 |
|
} |
|
events:{ |
|
id:2 |
|
} |
|
transformation:"y=1" |
|
} |
|
} |
|
|
|
} |
|
episode_end_listener: { |
|
events: { |
|
id: 3 |
|
} |
|
transformation: "y = True" |
|
} |
|
instruction_listener:{ |
|
type:OR |
|
events:{ |
|
event: |
|
{ |
|
events:{id:8} |
|
transformation:"y=[\'Now input provided message in pinyin(Sanguoyanyi)since chinese is not supported for current input, then click the corresponding one from search suggestions(hint:) \']"} |
|
} |
|
|
|
} |
|
|
|
|
|
} |
|
|
|
|
|
|
|
command: "Get in the douban group of the book named 三国演义(hint: 'search hint' node is search bar) " |
|
|
|
|
|
vocabulary: ["Sanguoyanyi"] |
|
|