If Chromium doesn't open after clicking "Record new" in CodeGen on VS Code, there could be a few reasons why.
First, make sure the Playwright extension is installed and enabled in VS Code. You can check this by going to the Extensions view (Ctrl+Shift+X) and searching for "Playwright". If it's not installed, click "Install". Once installed, ensure it's enabled by checking for a green checkmark next to its name.
Next, ensure Chromium is your default profile for debugging tests. Right-click on the debug icon in the testing sidebar and click "Select Default Profile". Choose "Chromium" from the options.
Lastly, make sure you have the latest version of Playwright installed globally on your machine. Run the following command in your terminal:
npm install -g playwright
Also, ensure all necessary dependencies are properly installed according to Playwright's documentation.
If you're still having issues, consult Playwright's official documentation or their community forums for further troubleshooting. For more information on @playwright/test, check out this comprehensive guide.
If you still have questions, please ask a question and I will try to answer it.
Rayrun is a community for QA engineers. I am constantly looking for new ways to add value to people learning Playwright and other browser automation frameworks. If you have feedback, email firstname.lastname@example.org.