Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error: page.evaluate - Execution Context Destroyed During Navigation #289

Open
2 tasks done
madhuhanlin opened this issue Jan 24, 2025 · 0 comments
Open
2 tasks done

Comments

@madhuhanlin
Copy link

madhuhanlin commented Jan 24, 2025

Version

No response

Repository URL

https://github.com/rmarescu/shortest-example-289

Actual behavior

I am getting this error when I run pnpm shortest --debug-ai -

❌ Browser Action Failed: page.evaluate: Execution context was destroyed, most likely because of a navigation

Before the error, it is able to correctly identify the products -

🤖 Prompt: Test: "test adding a product to the cart"
Callback function:  [NO_CALLBACK]

Expect:
1. "test adding a product to the cart" expected to be successful

Current Page State:
URL: https://fragrancelord.com/
Title: FragranceLord.com - Niche Fragrances, Luxury Perfumes, & Samples – Fragrancelord.com

🤖 AI: Let me help execute the test for adding a product to the cart. First, I'll take a screenshot to locate products and the elements we need to interact with.

🔧 Tool Request: { tool: 'computer', input: { action: 'screenshot' } }
  Screenshot saved to: /Users/muni/Documents/shortest/.shortest/screenshots/screenshot-2025-01-24T02-17-03-558Z.png

🤖 AI: I see several Creed fragrances displayed. Let's select one and add it to the cart. I'll choose the first product (Creed Les Royales Exclusives Sublime Vanille).

1. First, let's click on the product:

🔧 Tool Request: {
  tool: 'computer',
  input: { action: 'mouse_move', coordinate: [ 345, 381 ] }
}

🔧 Tool Request: { tool: 'computer', input: { action: 'left_click' } }

Expected behavior

I would expect it to be able to click on a product and add it to the cart

System Info

System:
    OS: macOS 15.1.1
    CPU: (8) arm64 Apple M1 Pro
    Memory: 3.91 GB / 16.00 GB
    Shell: 5.9 - /bin/zsh
  Binaries:
    Node: 23.6.1 - /opt/homebrew/bin/node
    npm: 10.9.2 - /opt/homebrew/bin/npm
    pnpm: 10.0.0 - /opt/homebrew/bin/pnpm
  Browsers:
    Chrome: 131.0.6778.265
    Safari: 18.1.1
  npmPackages:
    @antiwork/shortest: ^0.4.2 => 0.4.2

Validations

@rmarescu rmarescu moved this to Building needed in Shortest Jan 24, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Status: Building needed
Development

No branches or pull requests

1 participant