Selenium Extension
This tutorial covers how to add the Selenium MCP Server as a Goose extension to automate browser interactions such as navigating web pages and completing forms.
TLDR
Command
npx -y @angiejones/mcp-selenium
Configuration
info
Note that you'll need Node.js installed on your system to run this command, as it uses npx
.
- Goose CLI
- Goose Desktop
- Run the
configure
command:
goose configure
- Choose to add a
Command-line Extension
┌ goose-configure
│
◇ What would you like to configure?
│ Add Extension
│
◆ What type of extension would you like to add?
│ ○ Built-in Extension
│ ● Command-line Extension (Run a local command or script)
│ ○ Remote Extension
└
- Give your extension a name
┌ goose-configure
│
◇ What would you like to configure?
│ Add Extension
│
◇ What type of extension would you like to add?
│ Command-line Extension
│
◆ What would you like to call this extension?
│ Selenium
└
- Enter the command
┌ goose-configure
│
◇ What would you like to configure?
│ Add Extension
│
◇ What type of extension would you like to add?
│ Command-line Extension
│
◇ What would you like to call this extension?
│ Selenium
│
◆ What command should be run?
│ npx -y @angiejones/mcp-selenium
└
- Enter the number of seconds Goose should wait for actions to complete before timing out. Default is 300s
┌ goose-configure
│
◇ What would you like to configure?
│ Add Extension
│
◇ What type of extension would you like to add?
│ Command-line Extension
│
◇ What would you like to call this extension?
│ Selenium
│
◇ What command should be run?
│ npx -y @angiejones/mcp-selenium
│
◆ Please set the timeout for this tool (in secs):
│ 300
│
└
- Choose No when asked to add environment variables
┌ goose-configure
│
◇ What would you like to configure?
│ Add Extension
│
◇ What type of extension would you like to add?
│ Command-line Extension
│
◇ What would you like to call this extension?
│ Selenium
│
◇ What command should be run?
│ npx -y @angiejones/mcp-selenium
│
◇ Please set the timeout for this tool (in secs):
│ 300
│
◆ Would you like to add environment variables?
│ No
│
└ Added Selenium extension
- Launch the installer
- Press
Yes
to confirm the installation - Click
Save Configuration
- Scroll to the top and click
Exit
from the upper left corner
Example Usage
Let's use Goose to build a test automation project from scratch! We'll use the Selenium MCP to automate filling out a web form, then have Goose generate a Selenium project with the code so that we can run these tests again when needed.
Goose Prompt
Use selenium to go to the heroku formy site and fill out the form page with generic data. then can you turn what you've done into an automation script for me? I would like it in Java. Also use the Page Object Model pattern.