{"repo":"lucgagan/auto-playwright","free":true,"listed":false,"github":"https://github.com/lucgagan/auto-playwright","clone":"git clone https://github.com/lucgagan/auto-playwright.git","description":"Automating Playwright steps using ChatGPT.","language":"TypeScript","stars":844,"topics":["ai","playwright"],"license":"MIT","category":"scrapers-browser-automation","readme_excerpt":"Auto Playwright Run Playwright tests using AI. Setup 1. Install auto-playwright dependency: 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: 3. Import and use the auto function: Setup with Azure OpenAI Include the StepOptions type with the values needed for connecting to Azure OpenAI. Usage At minimum, the auto function requires a plain text prompt and an argument that contains your page and test (optional) objects. Browser automation Running without the test parameter: Debug You may pass a debug attribute as the third parameter to the auto function. This will print the prompt and the commands executed by OpenAI. You may also set environment variable AUTO PLAYWRIGHT DEBUG=true , which will enable debugging for all auto calls. Supported Browsers Every browser that Playwright supports. Additional Options There are additional options you can pass as a third argument: Supported Actions & Return Values Depending on the type of action (inferred by the auto function), there are different behaviors and return types. Action An action (e.g. \"click\") is some simulated user interaction with the page, e.g. a click on a link. Actions will return undefined if they were successful and will throw an error if they failed, e.g. Query A query will return requested data from the page as a string, e.g. Assert An assertion is a question that will return true or false , e.g. Why use Auto Playwrig","default_branch":null,"files":null,"tree":[],"storefront":"/r/lucgagan","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/lucgagan/auto-playwright/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}