Repository navigation
Closed
Description
Before submitting an issue, please:
- Check the documentation for relevant information
- Search existing issues to avoid duplicates
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
- agent.execute(prompt)
Metadata
Metadata
Assignees
Labels
No labels
Activity
add playwright arguments to agent (#1066)
miguelg719 commentedon Sep 10, 2025
hey @boogie-amplitude 👋
We just pushed a fix (#1066) can you try install
"alpha"and see if that solves the issueboogie-amplitude commentedon Sep 10, 2025
Confirmed the fix in alpha, thanks!