Generate Playwright Code
Generate Playwright code from your first TestVibe feature or test instructions.
Last updated
Was this helpful?
Generate Playwright code from your first TestVibe feature or test instructions.
After you create a test, use AI generation to turn the readable test intent into Playwright code.
Generation may take a few minutes. TestVibe will show progress while the agent works.
Playwright is the open-source browser automation framework TestVibe generates tests for. Visit playwright.dev to learn more.
Check that you have:
a saved test or feature
a site URL the cloud session can reach
any variables or secrets your test references, added in Settings → Variables & Secrets
If something is missing, TestVibe may prompt you before generation starts.
Select the test you created in the Test Suite.
Start generation from the test details or generation action.
Confirm the site URL and generation options if prompted.
Keep the default agent and model unless your team has a reason to change them (Settings → AI Model).
Start generation.
Watch the generation progress view.
Wait for the generation to finish.
When generation succeeds, TestVibe should show generated output and make the test ready to run.
TestVibe uses your Gherkin feature or test instructions as the source of intent. A cloud agent uses that intent to create Playwright code and supporting output, which is saved to your project. Generation usage is metered in credits.
You may see states such as:
queued
setting up
running
finalizing
succeeded
failed
cancelled
If generation fails, open the failure details before changing the test. The problem may be a missing variable or secret, an unreachable site, an unclear instruction, or application behavior that did not match the expected result.
Review the output enough to confirm that:
the generated code matches the behavior you intended
the target page or flow is correct
the expected result is being checked
no obvious setup or data requirement is missing
For deeper help, see Read generated output.
Continue to Run your first test.
Last updated
Was this helpful?
Was this helpful?
