Skip to content

Commit 8f629b0

Browse files
committed
change url to http://xwebarena.pathonai.org:7770/ for the shopping website
1 parent e1a75b1 commit 8f629b0

File tree

16 files changed

+184
-44
lines changed

16 files changed

+184
-44
lines changed

visual-tree-search-app/pages/tree-search-playground.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -83,7 +83,7 @@ const TreeSearchPlayground = () => {
8383

8484
// Search parameters
8585
const [searchParams, setSearchParams] = useState<SearchParams>({
86-
startingUrl: 'http://128.105.145.205:7770/',
86+
startingUrl: 'http://xwebarena.pathonai.org:7770/',
8787
goal: 'search running shoes, click on the first result',
8888
algorithm: 'bfs',
8989
maxDepth: 3

visual-tree-search-backend/README.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ chromium mode
1212
python run_demo_treesearch_async.py \
1313
--browser-mode chromium \
1414
--storage-state shopping.json \
15-
--starting-url "http://128.105.145.205:7770/" \
15+
--starting-url "http://xwebarena.pathonai.org:7770/" \
1616
--agent-type "SimpleSearchAgent" \
1717
--action_generation_model "gpt-4o-mini" \
1818
--goal "search running shoes, click on the first result" \
@@ -26,7 +26,7 @@ browserbase mode
2626
python run_demo_treesearch_async.py \
2727
--browser-mode browserbase \
2828
--storage-state shopping.json \
29-
--starting-url "http://128.105.145.205:7770/" \
29+
--starting-url "http://xwebarena.pathonai.org:7770/" \
3030
--agent-type "SimpleSearchAgent" \
3131
--action_generation_model "gpt-4o-mini" \
3232
--goal "search running shoes, click on the first result" \
@@ -64,7 +64,7 @@ curl -X POST http://localhost:3000/api/terminate-session/647f4021-2402-4733-84a3
6464
python run_demo_treesearch_async.py \
6565
--browser-mode chromium \
6666
--storage-state shopping.json \
67-
--starting-url "http://128.105.145.205:7770/" \
67+
--starting-url "http://xwebarena.pathonai.org:7770/" \
6868
--agent-type "LATSAgent" \
6969
--action_generation_model "gpt-4o-mini" \
7070
--goal "search running shoes, click on the first result" \
@@ -76,7 +76,7 @@ python run_demo_treesearch_async.py \
7676
python run_demo_treesearch_async.py \
7777
--browser-mode chromium \
7878
--storage-state shopping.json \
79-
--starting-url "http://128.105.145.205:7770/" \
79+
--starting-url "http://xwebarena.pathonai.org:7770/" \
8080
--agent-type "MCTSAgent" \
8181
--action_generation_model "gpt-4o-mini" \
8282
--goal "search running shoes, click on the first result" \

visual-tree-search-backend/app/api/lwats/replay_async.py

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -75,12 +75,12 @@ def read_steps_json(file_path):
7575

7676

7777
# Node(depth=1, value=0.00, visits=0, action=fill('274', 'running shoes'), feedback=) search running shoes, click on the first result <lwats.webagent_utils_async.utils.playwright_manager.AsyncPlaywrightManager object at 0x126dcd110> False log
78-
# page: <Page url='http://128.105.145.205:7770/'>
78+
# page: <Page url='http://xwebarena.pathonai.org:7770/'>
7979
# node: Node(depth=1, value=0.00, visits=0, action=fill('274', 'running shoes'), feedback=)
8080
# node.element: <coroutine object locate_element at 0x10db66880>
8181
# Error in locate_element: Connection closed
8282
# selector: body
83-
# element: <Locator frame=<Frame name= url='http://128.105.145.205:7770/'> selector='body'>
83+
# element: <Locator frame=<Frame name= url='http://xwebarena.pathonai.org:7770/'> selector='body'>
8484
# {}
8585
# element count before: 1
8686
# element count after: 1
@@ -90,22 +90,22 @@ def read_steps_json(file_path):
9090

9191

9292
# Node(depth=1, value=0.00, visits=0, action=fill('274', 'running shoes'), feedback=) search running shoes, click on the first result <lwats.webagent_utils_async.utils.playwright_manager.AsyncPlaywrightManager object at 0x1244aee10> False log
93-
# page: <Page url='http://128.105.145.205:7770/'>
93+
# page: <Page url='http://xwebarena.pathonai.org:7770/'>
9494
# node: Node(depth=1, value=0.00, visits=0, action=fill('274', 'running shoes'), feedback=)
9595
# node.element: {'text': '', 'type': 'text', 'tag': 'input', 'id': 'search', 'name': 'q', 'value': '', 'placeholder': 'Search entire store here...', 'class': 'input-text', 'role': 'combobox'}
9696
# selector: body
97-
# element: <Locator frame=<Frame name= url='http://128.105.145.205:7770/'> selector='body'>
97+
# element: <Locator frame=<Frame name= url='http://xwebarena.pathonai.org:7770/'> selector='body'>
9898
# {'text': '', 'type': 'text', 'tag': 'input', 'id': 'search', 'name': 'q', 'value': '', 'placeholder': 'Search entire store here...', 'class': 'input-text', 'role': 'combobox'}
9999
# element count before: 1
100100
# element count after: 1
101101
# ERROR:lwats.replay_async:Error occurred during execution: Error: Element is not an <input>, <textarea> or [contenteditable] element
102102

103103

104104
# Node(depth=1, value=0.00, visits=0, action=fill('274', 'running shoes'), feedback=) search running shoes, click on the first result <lwats.webagent_utils_sync.utils.playwright_manager.PlaywrightManager object at 0x111584210> False log
105-
# page: <Page url='http://128.105.145.205:7770/'>
105+
# page: <Page url='http://xwebarena.pathonai.org:7770/'>
106106
# node: Node(depth=1, value=0.00, visits=0, action=fill('274', 'running shoes'), feedback=)
107107
# selector: #search
108-
# element: <Locator frame=<Frame name= url='http://128.105.145.205:7770/'> selector='#search'>
108+
# element: <Locator frame=<Frame name= url='http://xwebarena.pathonai.org:7770/'> selector='#search'>
109109
# {'text': '', 'type': 'text', 'tag': 'input', 'id': 'search', 'name': 'q', 'value': '', 'placeholder': 'Search entire store here...', 'class': 'input-text', 'role': 'combobox', 'unique_selector': '#search', 'selector_uniqueness_validated': True}
110110
# element count before: 1
111111
# element count after: 1
@@ -459,7 +459,7 @@ def __str__(self):
459459
if args.url:
460460
await page.goto(args.url)
461461
else:
462-
await page.goto("http://128.105.145.205:7770/") # Default URL from your debug output
462+
await page.goto("http://xwebarena.pathonai.org:7770/") # Default URL from your debug output
463463

464464
print("Manual test mode - executing a single fill action")
465465

visual-tree-search-backend/app/api/lwats/webagent_utils_async/utils/playwright_manager.py

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
API_KEY = os.environ["BROWSERBASE_API_KEY"]
1414
PROJECT_ID = os.environ["BROWSERBASE_PROJECT_ID"]
1515

16-
SITE_URL = "http://128.105.145.205:7770"
16+
SITE_URL = "http://xwebarena.pathonai.org:7770"
1717
SITE_LOGIN_URL = f"{SITE_URL}/customer/account/login/"
1818

1919
async def debug_browser_state(browser):
@@ -295,7 +295,7 @@ async def test_chromium_mode():
295295

296296
try:
297297
page = await manager.get_page()
298-
await page.goto("http://128.105.145.205:7770/sales/order/history/")
298+
await page.goto("http://xwebarena.pathonai.org:7770/sales/order/history/")
299299
print(f"Current URL: {page.url}")
300300
await asyncio.sleep(3) # Wait to see the page
301301
finally:
@@ -315,8 +315,8 @@ async def test_browserbase_mode():
315315
print("Opening debugger URL in your default browser...")
316316
webbrowser.open(await manager.get_live_browser_url())
317317
await page.pause()
318-
await page.goto("http://128.105.145.205:7770/")
319-
await page.goto("http://128.105.145.205:7770/sales/order/history/")
318+
await page.goto("http://xwebarena.pathonai.org:7770/")
319+
await page.goto("http://xwebarena.pathonai.org:7770/sales/order/history/")
320320
print(f"Current URL: {page.url}")
321321
print(f"You can view the browser at: {await manager.get_live_browser_url()}")
322322
await asyncio.sleep(10) # Give more time to check the live URL
@@ -330,7 +330,7 @@ async def main():
330330
await test_chromium_mode()
331331

332332
# Test Browserbase mode
333-
await test_browserbase_mode()
333+
#await test_browserbase_mode()
334334

335335
if __name__ == "__main__":
336336
asyncio.run(main())

visual-tree-search-backend/app/api/routes/new_tree_search.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -91,7 +91,7 @@ class Args:
9191
async def start_tree_search(
9292
background_tasks: BackgroundTasks,
9393
agent_type: str = "SimpleSearchAgent",
94-
starting_url: str = "http://128.105.145.205:7770/",
94+
starting_url: str = "http://xwebarena.pathonai.org:7770/",
9595
goal: str = "search running shoes, click on the first result",
9696
images: Optional[str] = None,
9797
search_algorithm: str = "bfs",

visual-tree-search-backend/app/api/routes/new_tree_search_websocket.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,7 @@ async def handle_search_request(websocket: WebSocket, message: Dict[str, Any]):
7272
try:
7373
# Extract parameters from the message
7474
agent_type = message.get("agent_type", "SimpleSearchAgent")
75-
starting_url = message.get("starting_url", "http://128.105.145.205:7770/")
75+
starting_url = message.get("starting_url", "http://xwebarena.pathonai.org:7770/")
7676
goal = message.get("goal", "search running shoes, click on the first result")
7777
search_algorithm = message.get("search_algorithm", "bfs")
7878
max_depth = message.get("max_depth", 3)

visual-tree-search-backend/app/api/routes/tree_search.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -91,7 +91,7 @@ class Args:
9191
async def start_tree_search(
9292
background_tasks: BackgroundTasks,
9393
agent_type: str = "SimpleSearchAgent",
94-
starting_url: str = "http://128.105.145.205:7770/",
94+
starting_url: str = "http://xwebarena.pathonai.org:7770/",
9595
goal: str = "search running shoes, click on the first result",
9696
images: Optional[str] = None,
9797
search_algorithm: str = "bfs",

visual-tree-search-backend/app/api/routes/tree_search_websocket.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,7 @@ async def handle_search_request(websocket: WebSocket, message: Dict[str, Any]):
7272
try:
7373
# Extract parameters from the message
7474
agent_type = message.get("agent_type", "SimpleSearchAgent")
75-
starting_url = message.get("starting_url", "http://128.105.145.205:7770/")
75+
starting_url = message.get("starting_url", "http://xwebarena.pathonai.org:7770/")
7676
goal = message.get("goal", "search running shoes, click on the first result")
7777
search_algorithm = message.get("search_algorithm", "bfs")
7878
max_depth = message.get("max_depth", 3)

visual-tree-search-backend/app/api/run_demo_treesearch_async.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ async def main(args):
4949
parser.add_argument("--agent-type", type=str, default="LATSAgent",
5050
help="Type of agent to use (default: LATSAgent)")
5151
# Task
52-
parser.add_argument("--starting-url", type=str, default="http://128.105.145.205:7770/",
52+
parser.add_argument("--starting-url", type=str, default="http://xwebarena.pathonai.org:7770/",
5353
help="Starting URL for the web agent")
5454
parser.add_argument("--goal", type=str, default="search running shoes, click on the first result",
5555
help="Goal for the web agent to accomplish")

0 commit comments

Comments
 (0)