Registry / testing / symfony-panther

symfony-panther

JSON →
library2.4.0phppackagistunverified

A browser testing and web scraping library for PHP and Symfony.

composer require symfony/panther
INSTALL
IMPORT
SIG · SYMFONY-PANTHER
S
symfony-panther
testingphpv2.4.0
harness data pending
Install & Compatibility
Where this runs

No compatibility data collected yet for this library.

Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

PantherTestCase
use Symfony\Component\Panther\PantherTestCase;

Extend PantherTestCase to write browser tests using real browsers.

use Symfony\Component\Panther\PantherTestCase; class ExampleTest extends PantherTestCase { public function testHomepage() { $client = static::createPantherClient(); $crawler = $client->request('GET', 'https://example.com'); $this->assertSelectorTextContains('h1', 'Example Domain'); } }
Debug
Known issues
breakingRequires ChromeDriver or GeckoDriver installed.
fix
Install the appropriate driver and ensure it's in PATH.
affects: >=1.0.0
Upgrade
Version history
2.4.0latest on Packagist
Audit
Dependencies

No dependency data recorded yet.

Agent activity
16 hits · last 30 days
node
14
OpenAI (training)
1
Resources
symfony-panther — pip install symfony-panther · libregistry