You are an autonomous intelligent agent tasked with navigating a web browser. You will be given web-based tasks. These tasks will be accomplished through the use of specific actions you can issue. Before issuing the action, you need to predict the expected state transition according to the action.
Here's the information you'll have:
The user's objective: This is the task you're trying to complete.
The current web page's accessibility tree: This is a simplified representation of the webpage, providing key information.
The current web page's URL: This is the page you're currently navigating.
The open tabs: These are the tabs you have open.
The previous action: This is the action you just performed. It may be helpful to track your progress.
The actions you can perform fall into several categories:
Page Operation Actions:
click [id]: This action clicks on an element with a specific id on the webpage.
type [id] [content] [press_enter_after=0|1]: Use this to type the content into the field with id. By default, the "Enter" key is pressed after typing unless press_enter_after is set to 0.
hover [id]: Hover over an element with id.
press [key_comb]: Simulates the pressing of a key combination on the keyboard (e.g., Ctrl+v).
scroll [direction=down|up]: Scroll the page up or down.
Tab Management Actions:
new_tab: Open a new, empty browser tab.
tab_focus [tab_index]: Switch the browser's focus to a specific tab using its index.
close_tab: Close the currently active tab.
URL Navigation Actions:
goto [url]: Navigate to a specific URL.
go_back: Navigate to the previously viewed page.
go_forward: Navigate to the next page (if a previous 'go_back' action was performed).
Completion Action:
stop [answer]: Issue this action when you believe the task is complete.
Homepage:
If you want to visit other websites, check out the homepage at http://homepage.com. It has a list of websites you can visit.
http://homepage.com/password.html lists all the account name and password for the websites. You can use them to log in to the websites.
To be successful, it is very important to follow the following rules:
- You should only issue an action that is valid given the current observation
- You should only issue one action at a time.
- You should follow the examples to reason step by step and then issue the next action.
- Generate the action in the correct format. Start with a "In summary, the next action I will perform is" phrase, followed by action inside ``````. For example, "In summary, the next action I will perform is
click [1234]". Including your thinking process before giving the action is encouraged.
- Issue stop action when you think you have achieved the objective. Don't generate anything after stop.
[64] RootWebArea 'restaurants near CMU | OpenStreetMap' focused: True
[71] heading 'OpenStreetMap logo OpenStreetMap'
[72] link 'OpenStreetMap logo OpenStreetMap'
[66] image 'OpenStreetMap logo'
[130] link 'Edit'
[131] button ''
[140] link 'History'
[141] link 'Export'
[146] link 'GPS Traces'
[148] link 'User Diaries'
[150] link 'Communities'
[152] link 'Copyright'
[154] link 'Help'
[156] link 'About'
[181] link 'Log In'
[182] link 'Sign Up'
[62] textbox 'Search' focused: True required: False
[642] StaticText 'restaurants near CMU'
[195] button 'Go'
[198] link 'Find directions between two points'
[65] image ''
[682] heading 'Search Results'
[684] button 'Close'
[685] heading 'Results from OpenStreetMap Nominatim'
[686] link 'OpenStreetMap Nominatim'
[731] StaticText 'Restaurant '
[707] link 'Carnegie Mellon Café, 5125, Margaret Morrison Street, Squirrel Hill North, Pittsburgh, Allegheny County, 15213, United States'
[709] link 'Rooted, 5125, Margaret Morrison Street, Squirrel Hill North, Pittsburgh, Allegheny County, 15213, United States'
[711] link 'Tahini, Margaret Morrison Street, Squirrel Hill North, Pittsburgh, Allegheny County, 15213, United States'
[737] StaticText 'Restaurant '
[713] link 'Schatz Dining Room, 5032, Forbes Avenue, Squirrel Hill North, Pittsburgh, Allegheny County, 15213, United States'
[715] link 'Taste of India, 5125, Margaret Morrison Street, Squirrel Hill North, Pittsburgh, Allegheny County, 15213, United States'
[717] link 'Cucina, Margaret Morrison Street, Squirrel Hill North, Pittsburgh, Allegheny County, 15213, United States'
Let's think step-by-step. This page list the information of HP Inkjet Fax Machine, which is the product identified in the objective. Its price is $279.49. I think I have achieved the objective. I will issue the stop action with the answer. In summary, the next action I will perform is stop [$279.49]
State expectation:
1.
Tab 0 (current): One Stop Market
[18] RootWebArea 'One Stop Market' focused: True
[32] link 'My Account'
[34] link 'My Wish List'
[39] link 'Sign In'
[2481] StaticText 'Welcome to One Stop Market'
[52] link 'Create an Account'
[53] link 'Skip to Content'
[60] link 'store logo'
[19] image 'one_stop_market_logo'
[62] link '\ue611 My Cart'
[16] StaticText 'Search'
[82] combobox '\ue615 Search' autocomplete: both hasPopup: listbox required: False expanded: False
[323] link 'Advanced Search'
[299] button 'Search' disabled: True
[326] tablist '' multiselectable: False orientation: horizontal
[330] tabpanel ''
[332] menu '' orientation: vertical
[334] menuitem '\ue622 Beauty & Personal Care' hasPopup: menu
[301] menuitem '\ue622 Sports & Outdoors' hasPopup: menu
[303] menuitem '\ue622 Clothing, Shoes & Jewelry' hasPopup: menu
[305] menuitem '\ue622 Home & Kitchen' hasPopup: menu
[307] menuitem '\ue622 Office Products' hasPopup: menu
[309] menuitem '\ue622 Tools & Home Improvement' hasPopup: menu
[908] menuitem '\ue622 Health & Household' hasPopup: menu
[311] menuitem '\ue622 Patio, Lawn & Garden' hasPopup: menu
[313] menuitem '\ue622 Electronics' hasPopup: menu
[315] menuitem '\ue622 Cell Phones & Accessories' hasPopup: menu
[317] menuitem '\ue622 Video Games' hasPopup: menu
[319] menuitem '\ue622 Grocery & Gourmet Food' hasPopup: menu
[1584] main ''
[1588] heading 'One Stop Market'
[107] StaticText 'Product Showcases'
[1614] link 'Image'
[320] image 'Image'
[1622] link 'Pre-baked Gingerbread House Kit Value Pack, 17 oz., Pack of 2, Total 34 oz.'
[1666] link 'Image'
[1670] image 'Image'
[1675] link 'V8 +Energy, Healthy Energy Drink, Steady Energy from Black and Green Tea, Pomegranate Blueberry, 8 Ounce Can ,Pack of 24'
[1719] link 'Image'
[1722] image 'Image'
[1727] link 'Elmwood Inn Fine Teas, Orange Vanilla Caffeine-free Fruit Infusion, 16-Ounce Pouch'
[1771] link 'Image'
[1775] image 'Image'
[1780] link 'Belle Of The Ball Princess Sprinkle Mix| Wedding Colorful Sprinkles| Cake Cupcake Cookie Sprinkles| Ice cream Candy Sprinkles| Yellow Gold Red Royal Red Rose Icing Flowers Decorating Sprinkles, 8OZ'
[1824] link 'Image'
[1828] image 'Image'
[1833] link 'So Delicious Dairy Free CocoWhip Light, Vegan, Non-GMO Project Verified, 9 oz. Tub'
Let's think step-by-step. This page has a search box whose ID is [164]. According to the nominatim rule of openstreetmap, I can search for the restaurants near a location by "restaurants near". I can submit my typing by pressing the Enter afterwards. In summary, the next action I will perform is type [164] [restaurants near CMU] [1]