Skip to content

Adjust Playwright Prompt to write more robust/re-useable code#3

Merged
BaseInfinity merged 1 commit intomasterfrom
playwright--update-prompt-to-make-it-generate-more-stable-code
Jan 2, 2024
Merged

Adjust Playwright Prompt to write more robust/re-useable code#3
BaseInfinity merged 1 commit intomasterfrom
playwright--update-prompt-to-make-it-generate-more-stable-code

Conversation

@BaseInfinity
Copy link
Copy Markdown
Owner

The prompt before was great at running the test in real time as the user is inputting tasks, but would generate code that fails when trying to re-run the generated output.

This new prompt allows generating more defensive/robust code (such as wait conditions) without sacrificing code quality.

This should also work better with the AutoGPT additions since the Prompt knows to interpret multiple actions and use proper wait conditions or Promises to resolve them all versus writing sequential code that may break halfway through execution because a couple page loads are required

@BaseInfinity BaseInfinity merged commit 3b4ddaf into master Jan 2, 2024
BaseInfinity added a commit that referenced this pull request Apr 1, 2026
…make-it-generate-more-stable-code

Adjust Playwright Prompt to write more robust/re-useable code
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant