Playwright

Playwright

By 9olidity GitHub

-

playwright browser-automation
Overview

what is Playwright?

Playwright is a powerful browser automation tool that allows developers to automate web interactions, perform testing, and capture screenshots of web pages.

how to use Playwright?

To use Playwright, install it via npm and configure it according to your project needs. You can then use various commands to navigate, interact with elements, and capture screenshots.

key features of Playwright?

  • Full browser automation capabilities
  • Screenshot capture of entire pages or specific elements
  • Comprehensive web interaction (navigation, clicking, form filling)
  • Console log monitoring
  • JavaScript execution in browser context

use cases of Playwright?

  1. Automated testing of web applications
  2. Capturing screenshots for documentation or reporting
  3. Performing security tests like XSS and SQL injection
  4. Simulating user interactions for performance testing

FAQ from Playwright?

  • What browsers does Playwright support?

Playwright supports multiple browsers including Chromium, Firefox, and WebKit.

  • Is Playwright free to use?

Yes! Playwright is open-source and free to use.

  • Can Playwright be used for mobile testing?

Yes! Playwright can be configured to test mobile web applications.

Content

MCP Server Playwright

Features

  • 🌐 Full browser automation capabilities
  • 📸 Screenshot capture of entire pages or specific elements
  • 🖱️ Comprehensive web interaction (navigation, clicking, form filling)
  • 📊 Console log monitoring
  • 🔧 JavaScript execution in browser context

Installation

Installing via Smithery

npx playwright install firefox
yarn install 
npm run build 

Configuration

The installation process will automatically add the following configuration to your Claude config file:

{
  "mcpServers": {
    "playwright": {
      "command": "npx",
      "args": [
        "-y",
        "/Users/...../dist/index.js"
      ],
      "disabled": false,
      "autoApprove": []
    }
  }
}

Components

Tools

broser_url_reflected_xss

Test whether the URL has an XSS vulnerability

{
  "url": "https://test.com",
  "paramName":"text"
}

browser_url_sql_injection

Test whether the URL has SQL injection vulnerabilities

{
  "url": "https://test.com",
  "paramName":"text"
}

browser_navigate

Navigate to any URL in the browser

{
  "url": "https://stealthbrowser.cloud"
}

browser_screenshot

Capture screenshots of the entire page or specific elements

{
  "name": "screenshot-name",     // required
  "selector": "#element-id",     // optional
  "fullPage": true              // optional, default: false
}

browser_click

Click elements on the page using CSS selector

{
  "selector": "#button-id"
}

browser_click_text

Click elements on the page by their text content

{
  "text": "Click me"
}

browser_hover

Hover over elements on the page using CSS selector

{
  "selector": "#menu-item"
}

browser_hover_text

Hover over elements on the page by their text content

{
  "text": "Hover me"
}

browser_fill

Fill out input fields

{
  "selector": "#input-field",
  "value": "Hello World"
}

browser_select

Select an option in a SELECT element using CSS selector

{
  "selector": "#dropdown",
  "value": "option-value"
}

browser_select_text

Select an option in a SELECT element by its text content

{
  "text": "Choose me",
  "value": "option-value"
}

browser_evaluate

Execute JavaScript in the browser console

{
  "script": "document.title"
}
No tools information available.

Mirror of

puppeteer browser-automation
View Details
AutoBrowser MCP
AutoBrowser MCP by autobrowser-ai

Autobrowser MCP is a Model Context Provider (MCP) server that allows AI applications to control your browser

autobrowser browser-automation
View Details
Playwright
Playwright by microsoft

-

playwright browser-automation
View Details

mcp server demo project

playwright demo
View Details
playwright-mcp
playwright-mcp by playwright-mcp

This MCP Server will help you run browser automation and webscraping using Playwright

playwright browser-automation mcp playwright
View Details

A MCP server that analyzes web site performance using Playwright and Lighthouse.

playwright lighthouse
View Details
Steel Puppeteer
Steel Puppeteer by MCP-Mirror

Mirror of

puppeteer browser-automation
View Details