npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2026 – Pkg Stats / Ryan Hefner

gui-selelnium-mcp

v1.0.9

Published

An npm package for selenium mcp

Readme

MCP Selenium Server

A powerful Model Context Protocol (MCP) Selenium Server designed for AI-assisted UI test case generation and browser automation, fully integrated with IBM BOB. This package enables users to switch into a dedicated Selenium MCP mode inside IBM BOB, allowing automated generation, execution, and refinement of Selenium-based UI test cases through structured prompting.

✨ Overview

  • Dedicated Selenium MCP mode within IBM BOB
  • Selenium WebDriver browser automation support
  • Intelligent UI interaction through prompt-driven workflows
  • Reusable xpath support from existing frameworks
  • Integration with existing page object models
  • CLI verification integration support

📦 Installation

Option 1: npm Package (Recommended)

git clone [email protected]:Priyanka-Lokhande1/mcp-selenium.git
cd mcp-selenium

Option 2: Local Development

git clone [email protected]:Priyanka-Lokhande1/mcp-selenium.git
cd mcp-selenium
npm install
node src/lib/server.js

IBM BOB Integration

Once installed:

Step 1:

Switch IBM BOB to Selenium MCP mode.

Step 2:

Use structured prompts to generate Selenium test case

Best Practices for Prompting

  • Specify exact source test file
  • Mention reusable functions
  • Mention existing xpaths
  • Define page transitions clearly
  • Specify form fields and values
  • Mention required assertions
  • Specify CLI command names
  • Mention verification conditions
  • Specify reference files for patterns
  • Continuously monitor generation quality
  • Prompt additional corrections/tweaks as needed

Example Prompt :

Create a comprehensive Selenium-based test case for tenant creation functionality in src/testcases/common/flash_grid/test_create_tenant.py that performs the following workflow:

Use the existing navi_goto_flash_grid_sub_menu function to navigate to the Tenants tab, reusing any xpaths already present in the file. Launch Firefox browser via Selenium MCP server, navigate to the cluster IP from login_data.py, authenticate with provided credentials, and access the Tenants section to click 'Create a tenant'.

When the Carbon tearsheet loads, interact with the tenant creation form by entering 'tenant1' in the Tenant name input field and clicking Next. Verify the page heading changes to 'Select systems'. Select any two enabled checkboxes from the systems table (avoiding disabled ones) and click Next again, reusing the existing Next button xpath.

On the user configuration page, populate the following fields: User group name with 'tenantUser', User name with 'testUser', select 'Administrator' from the Select tenant role dropdown, choose the first option in the User location (system) dropdown, enter 'l0destone' in both New password and Confirm password textboxes. Once all fields are filled and the Next button becomes enabled, click it.

Click the Create button to initiate tenant creation. A progress modal will appear - wait for the Close button to become clickable using the close_progress_dialog function from src/common/base_page_objs.py to locate and click the Close button.

For verification, extend src/utils/flashGrid/fg_cli.py by adding a new function that executes the 'lsgridtenant' CLI command, using the existing svcinfo_definitions.xml file to determine the correct CLI format and following the established patterns in fg_cli.py. In test_create_tenant.py, invoke this CLI function and parse the result array to verify the presence of tenant name 'tenantUser'. Assert true if found, otherwise assert false with the error message "failed to create the tenant".

Structure the test case following the patterns established in test_flashgrid_dashboard.py and test_create_add_flashgrid.py, including proper pytest markers, allure annotations, fixtures for setup, and appropriate page object model usage.

Troubleshooting :

If generated test case is incomplete:

  • Refine prompt
  • Add exact xpath instructions
  • Specify utility functions
  • Define verification commands
  • Mention missing logic

Summary :

gui-selenium-mcp transforms IBM BOB into a powerful AI-assisted Selenium automation platform by combining:

  • Prompt engineering
  • Browser automation
  • Continuous refinement
  • Scalable test generation