CtrlK
BlogDocsLog inGet started
Tessl Logo

tessl/npm-puppeteer-core

A high-level API to control headless Chrome and Firefox browsers over the DevTools Protocol and WebDriver BiDi

94

1.02x
Overview
Eval results
Files

rubric.jsonevals/scenario-2/

{
  "context": "This criteria evaluates how effectively the engineer uses Puppeteer's screenshot API to implement a web page screenshot utility. It focuses on proper usage of browser launching, page navigation, and screenshot capture methods with various format and quality options.",
  "type": "weighted_checklist",
  "checklist": [
    {
      "name": "Browser initialization",
      "description": "Uses puppeteer.launch() to create a browser instance and properly closes it after use (or uses try-finally pattern)",
      "max_score": 15
    },
    {
      "name": "Page creation and navigation",
      "description": "Uses browser.newPage() to create a page and page.goto() to navigate to the target URL",
      "max_score": 15
    },
    {
      "name": "PNG format support",
      "description": "Uses page.screenshot() with type: 'png' (or defaults to PNG) to capture screenshots in PNG format",
      "max_score": 15
    },
    {
      "name": "JPEG format support",
      "description": "Uses page.screenshot() with type: 'jpeg' and quality option to capture JPEG screenshots with specified quality",
      "max_score": 15
    },
    {
      "name": "WebP format support",
      "description": "Uses page.screenshot() with type: 'webp' and quality option to capture WebP screenshots with specified quality",
      "max_score": 15
    },
    {
      "name": "Full page capture",
      "description": "Uses page.screenshot() with fullPage: true option to capture the entire scrollable page content",
      "max_score": 15
    },
    {
      "name": "Region clipping",
      "description": "Uses page.screenshot() with clip option containing x, y, width, and height properties to capture specific page regions",
      "max_score": 10
    }
  ]
}

Install with Tessl CLI

npx tessl i tessl/npm-puppeteer-core

tile.json