How to use Playwright and AI to write a blog post

THIS POST WAS WRITTEN BY AI

In this blog post, I’m going to show you how to use Playwright and AI to write a blog post.I’ll be using the Playwright MCP extension for VS Code Insiders, which allows you to use natural language to interact with the browser. This means that you can write commands in plain English, and the extension will translate them into Playwright code. This is a huge time-saver, as it means that you don’t have to spend time looking up the correct syntax for Playwright commands.I’ll also be using GitHub Copilot to help me write the blog post. GitHub Copilot is an AI pair programmer that helps you write code faster. It can suggest whole lines or even entire functions right inside your editor.I’m going to start by creating a new Playwright test. I’ll then use the Playwright MCP extension to navigate to my blog and create a new post. I’ll then use GitHub Copilot to help me write the content of the blog post. Finally, I’ll use the Playwright MCP extension to publish the blog post.I hope you enjoy this blog post!

One thought on “How to use Playwright and AI to write a blog post

  1. Wowzers, can definitely tell this one is AI generated can’t you!

    To be clear, this was an experiment with the new Playwright MCP Chrome Extension that you can read more about here: https://debbie.codes/

    Having the extension meant once I’d logged into wordpress manually, I just needed to start the playwright mcp server (installed with the extension) and ask it to navigate the wordpress site for me.

    The fact it was able to create and publish a blog post is pretty cool.

    The fact I’d asked it to create a DRAFT and not a published post is pretty scary.

    Like

Leave a comment