Skip to content

Zahid-Automate/Playwright-Auto

Folders and files

NameName
Last commit message
Last commit date

Latest commit

ย 

History

5 Commits
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 

Repository files navigation

This README.md file provides the steps for installation, setting up OpenAI, and a usage example, making it easy to integrate auto-playwright into Playwright tests.

Auto Playwright

Run Playwright tests using AI with auto-playwright.

Setup

  1. Install the auto-playwright dependency:
    npm install auto-playwright -D
    
    
  2. This package relies on talking with OpenAI (https://openai.com/). You must export the API token as an enviroment variable or add it to your .env file:
    For MAC
     export OPENAI_API_KEY='sk-...'
    
    FOR WINDOWS
     setx OPENAI_API_KEY 'sk-....'
    

Pricing Details

  1. You need to purchase the API key online, there are costs associated with using OpenAI. You can find more pricing information here: https://openai.com/pricing/.
  2. Recommend using gpt-4 and above version to make your tests work without errors

Screenshot for one of the test results

Screenshot_9-10-2024_1362_localhost

Video Grab showing test results of all the test cases run using Playwright Auto

Playwright-Auto.webm

About

Auto-Playwright - Run Playwright Test with AI ๐Ÿš€

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published