Selenium Extension
π₯Plug & Play
Watch the demo
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
- goose Desktop
- goose CLI
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 Desktop
- goose CLI
- Launch the installer
- Click
Yesto confirm the installation - Click the button in the top-left to open the sidebar
- Navigate to the chat
- Run the
configurecommand:
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 (SSE)
β β Remote Extension (Streaming HTTP)
β
- 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 to run when this extension is used.
β 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
300seconds.
β 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
β
- Enter a description for this extension.
β 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
β
β Enter a description for this extension:
β Automates browser interactions
β
- Choose
Nowhen 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
β
β Enter a description for this extension:
β Automates browser interactions
β
β Would you like to add environment variables?
β No
β
β Added Selenium extension
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.