- Step1: Install the Browser Copilot extension from the Chrome Web Store.
- Step2: Open the extension pane and enter your OpenAI API key in settings.
- Step3: Navigate to your web application and right-click on a page element.
- Step4: Choose “Generate Selector” or “Generate Test Code” and provide any natural language instructions.
- Step5: Review the generated selector or code snippet for Selenium, Playwright, or Puppeteer.
- Step6: Export or copy the generated code into your test suite.
- Step7: Run and validate the new test in your preferred framework.