id: "Open_the_address_table." name: "Ele.me Order Food Task" description: "A task to order food from a restaurant on Ele.me app. Includes selecting a restaurant, choosing food items, checking out, and submitting the order." setup_steps: { adb_call: { rotate: { orientation: PORTRAIT_0 } } } reset_steps: { adb_call: { force_stop: { package_name: "me.ele" } } } reset_steps: { success_condition: { num_retries: 3 wait_for_app_screen: { app_screen: { activity: "me.ele/me.ele.Launcher" } timeout_sec: 10.0 } } adb_call: { start_activity: { full_activity: "me.ele/me.ele.Launcher" } } } expected_app_screen: { } max_num_steps: 5000 event_sources: { id: 1 view_hierarchy_event: { selector: '#"me.ele:id/home_bottom_tab_message_text"' properties: { property_name: "text" pattern: "消息" } } } event_sources: { id: 2 view_hierarchy_event: { selector: '#"me.ele:id/home_bottom_tab_3_text"' properties: { property_name: "text" pattern: "购物车" } } } event_sources: { id: 3 view_hierarchy_event: { selector: '#"me.ele:id/home_bottom_tab_4_text"' properties: { property_name: "text" pattern: "我的" } } } event_sources: { id: 4 text_detect: { expect: "消息" rect: { x0: 0.4 y0: 0.9099 x1: 0.6 y1: 0.9344 } } } event_sources: { id: 5 text_detect: { expect: "购物车" rect: { x0: 0.6 y0: 0.9099 x1: 0.8 y1: 0.9344 } } } event_sources: { id: 6 text_detect: { expect: "我的" rect: { x0: 0.8 y0: 0.9099 x1: 1.0 y1: 0.9344 } } } event_sources: { id: 7 view_hierarchy_event: { selector: '#"me.ele:id/id_magex_mistview" > .android.view.ViewGroup:nth-child(1) > .android.widget.TextView' properties: { property_name: "text" pattern: "点餐" } } } event_sources: { id: 10 text_recognize: { expect: "点餐" rect: { x0: 0.0306 y0: 0.1944 x1: 0.0981 y1: 0.2667 } } } event_sources: { id: 8 view_hierarchy_event: { selector: '#"me.ele:id/id_magex_mistview" > .android.view.ViewGroup:nth-child(2) > .android.widget.TextView' properties: { property_name: "text" pattern: "评价" } } } event_sources: { id: 11 text_recognize: { expect: "评价" rect: { x0: 0.2083 y0: 0.1944 x1: 0.2833 y1: 0.2667 } } } event_sources: { id: 9 view_hierarchy_event: { selector: '#"me.ele:id/id_magex_mistview" > .android.view.ViewGroup:nth-child(3) > .android.widget.TextView' properties: { property_name: "text" pattern: "品牌" } } } event_sources: { id: 12 text_recognize: { expect: "品牌" rect: { x0: 0.3907 y0: 0.1944 x1: 0.4639 y1: 0.2667 } } } event_sources: { id: 13 view_hierarchy_event: { selector: '#"me.ele:id/cart_food_count_view"' properties: { property_name: "content-desc" pattern: "购物车,[0-9]+,件" } } } event_sources: { id: 14 text_recognize: { expect: "提交订单" rect: { x0: 0.7282 y0: 0.9372 x1: 0.9709 y1: 1.0 } } } event_sources: { id: 34 view_hierarchy_event: { selector: '#"me.ele:id/tv_title"[text="选择收货地址"]' properties: { property_name: "text" pattern: "选择收货地址" } } } event_sources: { id: 35 text_recognize: { expect: "选择收货地址" rect: { x0: 0.37 y0: 0.09 x1: 0.63 y1: 0.15 } } } event_slots: { reward_listener: { type: OR events: { event: { type: OR events: { event: { type: AND events: [ { id: 1 }, { id: 2 }, { id: 3 } ] transformation: "y = 1" id: 100 } } events: { event: { type: AND events: [ { id: 4 }, { id: 5 }, { id: 6 } ] transformation: "y = 1" id: 101 } } } } events: { event: { type: SINGLE events: [ { id: 34 } ] transformation: "y = 1" id: 104 } } } instruction_listener: { type: OR events: { event: { type: OR id: 302 events: [ { id: 101 }, { id: 100 } ] transformation: "y = 'Open the address table.'" } } events: { event: { type: SINGLE id: 304 events: [ { id: 104 } ] transformation: "y = 'Select an address.'" } } } episode_end_listener: { type: OR events: { id: 34 } events: { id: 35 } transformation: "y = True" } } command: "Open the address table.If the app's start page asks you to select an address, please choose Shanghai Jiao Tong University; otherwise, no selection is needed." vocabulary: ["start", "navigate", "menu", "select", "items", "cart", "submit", "order"]