mirror of
				https://github.com/microsoft/playwright-mcp.git
				synced 2025-10-12 00:25:14 +03:00 
			
		
		
		
	chore: allow generating tests for script (#331)
This commit is contained in:
		
							
								
								
									
										16
									
								
								README.md
									
									
									
									
									
								
							
							
						
						
									
										16
									
								
								README.md
									
									
									
									
									
								
							| @@ -17,7 +17,7 @@ A Model Context Protocol (MCP) server that provides browser automation capabilit | ||||
|  | ||||
| <!-- | ||||
| // Generate using: | ||||
| node utils/generate_links.js | ||||
| node utils/generate-links.js | ||||
| --> | ||||
|  | ||||
| [<img src="https://img.shields.io/badge/VS_Code-VS_Code?style=flat-square&label=Install%20Server&color=0098FF" alt="Install in VS Code">](https://insiders.vscode.dev/redirect?url=vscode%3Amcp%2Finstall%3F%257B%2522name%2522%253A%2522playwright%2522%252C%2522command%2522%253A%2522npx%2522%252C%2522args%2522%253A%255B%2522%2540playwright%252Fmcp%2540latest%2522%255D%257D) [<img alt="Install in VS Code Insiders" src="https://img.shields.io/badge/VS_Code_Insiders-VS_Code_Insiders?style=flat-square&label=Install%20Server&color=24bfa5">](https://insiders.vscode.dev/redirect?url=vscode-insiders%3Amcp%2Finstall%3F%257B%2522name%2522%253A%2522playwright%2522%252C%2522command%2522%253A%2522npx%2522%252C%2522args%2522%253A%255B%2522%2540playwright%252Fmcp%2540latest%2522%255D%257D) | ||||
| @@ -142,7 +142,8 @@ The Playwright MCP server can be configured using a JSON configuration file. Her | ||||
|     'history' | // Browser history | ||||
|     'wait' |    // Wait utilities | ||||
|     'files' |   // File handling | ||||
|     'install'   // Browser installation | ||||
|     'install' | // Browser installation | ||||
|     'testing'   // Testing | ||||
|   >; | ||||
|  | ||||
|   // Enable vision mode (screenshots instead of accessibility snapshots) | ||||
| @@ -485,4 +486,15 @@ X Y coordinate space, based on the provided screenshot. | ||||
|     - `accept` (boolean): Whether to accept the dialog. | ||||
|     - `promptText` (string, optional): The text of the prompt in case of a prompt dialog. | ||||
|  | ||||
| ### Testing | ||||
|  | ||||
| <!-- NOTE: This has been generated via update-readme.js --> | ||||
|  | ||||
| - **browser_generate_playwright_test** | ||||
|   - Description: Generate a Playwright test for given scenario | ||||
|   - Parameters: | ||||
|     - `name` (string): The name of the test | ||||
|     - `description` (string): The description of the test | ||||
|     - `steps` (array): The steps of the test | ||||
|  | ||||
| <!--- End of generated section --> | ||||
|   | ||||
		Reference in New Issue
	
	Block a user
	 Pavel Feldman
					Pavel Feldman