Skip to content

panthervsskyvern

MIT 215 4 3,072
22.6 thousand (month) Jul 17 2018 v2.4.0(2026-01-08 05:29:21 ago)
23,420 20 300 AGPL-3.0
Feb 01 2024 7.4 thousand (month) 1.0.57(2026-11-06 21:43:49 ago)

Panther is a convenient standalone library to scrape websites and to run end-to-end tests using real browsers.

Panther is super powerful. It leverages the W3C's WebDriver protocol to drive native web browsers such as Google Chrome and Firefox.

Panther is very easy to use, because it implements Symfony's popular BrowserKit and DomCrawler APIs, and contains all the features you need to test your apps. It will sound familiar if you have ever created a functional test for a Symfony app: as the API is exactly the same! Keep in mind that Panther can be used in every PHP project, as it is a standalone library.

Panther automatically finds your local installation of Chrome or Firefox and launches them, so you don't need to install anything else on your computer, a Selenium server is not needed!

In test mode, Panther automatically starts your application using the PHP built-in web-server. You can focus on writing your tests or web-scraping scenario and Panther will take care of everything else.

Features:

  • executes the JavaScript code contained in webpages
  • supports everything that Chrome (or Firefox) implements
  • allows taking screenshots
  • can wait for asynchronously loaded elements to show up
  • lets you run your own JS code or XPath queries in the context of the loaded page
  • supports custom Selenium server installations
  • supports remote browser testing services including SauceLabs and BrowserStack

Skyvern is an AI-powered browser automation tool that uses large language models (LLMs) and computer vision to interact with websites. Instead of relying on DOM selectors, Skyvern takes screenshots of web pages and uses visual understanding to identify and interact with elements, making it highly resilient to website changes.

Key features include:

  • Vision-based interaction Uses screenshots and computer vision (multimodal LLMs) to understand page layout and identify interactive elements visually, rather than through DOM inspection alone.
  • No selectors needed Describe tasks in natural language and Skyvern figures out what to click, type, and navigate without CSS selectors or XPath.
  • Complex workflow automation Can handle multi-step workflows like form filling, navigation through menus, file uploads, and multi-page processes.
  • Self-correcting When actions fail, Skyvern can analyze the resulting page state and adjust its approach, recovering from errors autonomously.
  • API-first design Provides a REST API for triggering and managing automation tasks programmatically.
  • Open source with cloud option Core engine is open source and can be self-hosted. Also available as a managed cloud service.

Skyvern is particularly effective for automating tasks on websites with complex or dynamic UIs where traditional selector-based automation breaks frequently. It achieved 85.85% accuracy on the WebVoyager benchmark.

Highlights


ai-powerednatural-languageanti-detect

Example Use


<?php

use Symfony\Component\Panther\Client;

require __DIR__.'/vendor/autoload.php'; // Composer's autoloader

$client = Client::createChromeClient();
// Or, if you care about the open web and prefer to use Firefox
$client = Client::createFirefoxClient();

$client->request('GET', 'https://api-platform.com'); // Yes, this website is 100% written in JavaScript
$client->clickLink('Get started');

// Wait for an element to be present in the DOM (even if hidden)
$crawler = $client->waitFor('#installing-the-framework');
// Alternatively, wait for an element to be visible
$crawler = $client->waitForVisibility('#installing-the-framework');

echo $crawler->filter('#installing-the-framework')->text();
$client->takeScreenshot('screen.png'); // Yeah, screenshot!
import requests

# Skyvern runs as a service - interact via REST API
SKYVERN_API = "http://localhost:8000/api/v1"

# Create a task with natural language instructions
task = requests.post(
    f"{SKYVERN_API}/tasks",
    json={
        "url": "https://example.com/contact",
        "navigation_goal": "Fill out the contact form with test data and submit it",
        "data_extraction_goal": "Extract the confirmation message after submission",
        "navigation_payload": {
            "name": "John Doe",
            "email": "john@example.com",
            "message": "Hello, this is a test message",
        },
    },
).json()

task_id = task["task_id"]

# Check task status
result = requests.get(f"{SKYVERN_API}/tasks/{task_id}").json()
print(result["status"])           # "completed"
print(result["extracted_information"])  # confirmation message

Alternatives / Similar


Was this page helpful?