Skip to content

Kévin Dunglas

Founder of Les-Tilleuls.coop (worker-owned cooperative). Creator of API Platform, Mercure.rocks, Vulcain.rocks and of some Symfony components.

Menu
  • Talks
  • Resume
  • Sponsor me
  • Contact
Menu

Panther: test your Symfony apps with real web browsers

Posted on September 28, 2018May 17, 2019 by Kévin Dunglas

Panther: test your Symfony apps with real web browsers from Les-Tilleuls.coop

From a few lines of jQuery to modern React/Vue… PWA, Symfony apps always contain JavaScript code. Unfortunately, the SF functional test helper and the Goutte web scrapping lib aren’t able to execute JS code. It means that they cannot assert on client-side generated HTML, test if an element is visible or not, deal with alert boxes or detect if a bug occurs only with a specific browser.

Panther is a brand new e2e testing and web scrapping library written in PHP that drives real browsers thanks to the WebDriver protocol from the W3C. It implements the exact same API than the BrowserKit component. It means than existing SF tests and Goutte scripts work without modification… but this time JS will be executed! The tool also brings new capabilities including taking screenshots, or executing custom JS in the execution context of the web page. To install Panther you only have one command to run, and it doesn’t need any dependency to install Panther. Let’s meet the feline!

During the first presentation of this talk, Panther reached 1,000 stars on GitHub!
To celebrate, I unveiled a set of new features including some brand new database testing helpers inspired from Laravel.

Related posts:

  1. Introducing Symfony Panther: a Browser Testing and Web Scraping Library for PHP
  2. Symfony on steroids
: Vue.js, Mercure, Panther (SymfonyLive Paris)
  3. Progressively enhance your Symfony 4 app using Vue, API Platform, Mercure and Panther (SymfonyCon)
  4. HTTP/2: speed up your apps and dispatch real time updates (Symfony and API Platform’s features announcement)

Leave a ReplyCancel reply

Subscribe to this blog

Recent Posts

  • The PHP Revolution Is Underway: FrankenPHP 1.0 Beta
  • 6x faster Docker builds for Symfony and API Platform projects
  • Mitigate Attacks on your PHP Supply Chain
  • How Can JSON-LD Help You Sell More?
  • Symfony ImportMaps: Manage Your JavaScript Dependencies Without Node

Top Posts & Pages

  • The PHP Revolution Is Underway: FrankenPHP 1.0 Beta
  • FrankenPHP: The Modern Php App Server, written in Go
  • Preventing CORS Preflight Requests Using Content Negotiation
  • JSON Columns and Doctrine DBAL 3 Upgrade
  • 6x faster Docker builds for Symfony and API Platform projects
  • Securely Access Private Git Repositories and Composer Packages in Docker Builds
  • Symfony's New Native Docker Support (Symfony World)
  • Generate a Symfony password hash from the command line
  • Goroutines, threads, and thread IDs
  • API Platform 3 Is Released!

Persistence in PHP with the Doctrine ORM

Persistence in PHP with the Doctrine ORM

Tags

Apache API API Platform Buzz Caddy Docker Doctrine Go Google GraphQL HTTP/2 Hydra hypermedia Hébergement Javascript JSON-LD Kubernetes La Coopérative des Tilleuls Les-Tilleuls.coop Lille Linux Mac Mercure Messagerie Instantanée MySQL performance PHP Punk Rock Python React REST Rock'n'Roll RSS Schema.org Security SEO SEO Symfony Symfony Live Sécurité Ubuntu Web 2.0 webperf XHTML XML

Archives

Categories

  • DevOps (27)
  • Mercure (5)
  • Opinions (91)
  • Programming (190)
    • Android (5)
    • Go (14)
    • JavaScript (45)
    • PHP (148)
      • API Platform (68)
      • Symfony (92)
    • Python (14)
      • Django (5)
  • Security (15)
  • SEO (24)
  • Talks (40)
  • Ubuntu (68)
  • Wordpress (6)

Social

  • Mastodon
  • Twitter
  • LinkedIn
  • YouTube
  • GitHub

Links

  • API Platform
  • Les-Tilleuls.coop
  • Mercure.rocks
  • Vulcain.rocks
© 2023 Kévin Dunglas | Powered by Minimalist Blog WordPress Theme