Skip to content

playwrightArguments missing from AgentResult #1060

Closed

Description

@boogie-amplitude

Before submitting an issue, please:

Environment Information

Please provide the following information to help us reproduce and resolve your issue:

Stagehand:

  • Language/SDK: TypeScript
  • Stagehand version: 2.5.0

AI Provider:

  • Provider: OpenAI
  • Model: gpt-4.1, gpt-5, gpt-4.1-mini, gpt-5-mini

Issue Description

Previously (stagehand 2.4.4) Agent Result contained playwrightArguments with act, it no longer does.

Previously:

"agentResult": {
    "success": true,
    "message": "The NPS survey appeared and I selected 4 as the score. I then submitted the survey to complete it. After that, I navigated to the cart page and verified that the cart is currently empty. The task is complete.",
    "actions": [
      {
        "type": "act",
        "reasoning": "The NPS survey is visible on the page. The next step is to select 4 as the score on the survey.",
        "taskCompleted": false,
        "parameters": "click on the number 4 in the NPS survey",
        "playwrightArguments": {
          "description": "Button with the number 4 in the NPS survey to choose a rating",
          "method": "click",
          "arguments": [],
          "selector": "xpath=/html[1]/body[1]/div[7]/div[2]/div[1]/div[1]/div[2]/div[1]/div[1]/div[1]/div[1]/div[1]/div[1]/div[1]/div[3]/div[1]/button[5]"
        }
      },

Currently:

"agentResult": {
    "success": true,
    "message": "Completed the flow as requested. Summary:\n- Viewed Home Page\n- Opened menu and tapped Sign Up\n- Created account with email [email protected]\n- Signed in successfully\n- Viewed Plans & Pricing and selected a plan\n- Proceeded to Checkout with name Test User\n- Confirmed purchase\n- Waited for NPS survey; none appeared during wait\n- Submitted contact form requesting a demo (Message: \"I would like to request a demo of Amplinet services. Please contact me to schedule a demo.\")\n\nIf you want, I can try again to locate the NPS survey or verify the account/purchase details.",
    "actions": [
      {
        "type": "close",
        "reasoning": "Completed all steps: viewed home, signed up, created account, logged in, viewed plans, selected plan, proceeded to checkout, entered payment info, confirmed purchase, attempted to locate NPS survey (none appeared), and submitted contact form requesting a demo.",
        "taskCompleted": true
      }
    ],

Steps to Reproduce

  1. agent.execute(prompt)

Activity

  1. miguelg719 commented on Sep 10, 2025

    @miguelg719
    Collaborator

    hey @boogie-amplitude 👋

    We just pushed a fix (#1066) can you try install "alpha" and see if that solves the issue

  2. boogie-amplitude commented on Sep 10, 2025

    @boogie-amplitude
    Author

    Confirmed the fix in alpha, thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions