El catálogo/Playwright
Playwright
app.playwright
Automate browsers and scrape web pages with Playwright
Versión1.0.0
Categoríadevelopment
AutenticaciónSin auth
Herramientas27
Transportestdio
LicenciaMIT
01
Qué hace
La aplicación, en sus propias palabras.
Browser automation and web scraping via Playwright. Navigate, interact, take screenshots, and extract data from web pages.
02
Herramientas
27 herramientas que el agente puede llamar.
Todas se declaran con parámetros tipados y devuelven resultados estructurados, así que el anfitrión puede renderizarlas en vez de narrarlas.
- clickPerform click on a web page
- closeClose the page
- console-clearClear all captured console messages
- console-errorsReturns only error messages (shortcut for level=error)
- console-messagesReturns console messages with filtering options
- dragPerform drag and drop between two elements
- emulate-deviceEmulate a specific device or custom viewport. Recreates the browser context with the specified device settings. Useful for recording tutorials on mobile vs desktop views.
- evaluateEvaluate JavaScript expression on page or element
- file-uploadUpload one or multiple files
- fill-formFill multiple form fields
- handle-dialogHandle a dialog
- hoverHover over element on page
- installInstall the browser specified in the config. Call this if you get an error about the browser not being installed.
- navigateNavigate to a URL
- navigate-backGo back to the previous page
- network-requestsReturns all network requests since loading the page
- press-keyPress a key on the keyboard
- resizeResize the browser window
- run-codeRun Playwright code snippet
- select-optionSelect an option in a dropdown
- snapshotCapture accessibility snapshot of the current page, this is better than screenshot
- start-recordingStart recording a video of the browser. Creates a new browser context with video recording enabled. Use stop-recording to finalize the video — it is stored in the workspace file area and its URL is returned. All navigation and interaction tools will be captured in the recording.
- stop-recordingStop recording and save the video. Closes the current browser context (which finalizes the video), stores the .webm in the workspace file area, and returns its URL. A new non-recording context is created automatically so the browser remains usable.
- tabsList, create, close, or select a browser tab.
- take-screenshotTake a screenshot of the current page. You can't perform actions based on the screenshot, use snapshot for actions. The screenshot is stored in the workspace file area and its URL is returned.
- typeType text into editable element
- wait-forWait for text to appear or disappear, a URL to load, network idle, or a specified time to pass
Seguir leyendo
El manifiesto y el código de Playwright están en el monorepo, junto al resto de aplicaciones.