Comments (3)
Thanks, it works indeed. The docs of Symfony Panther are not up-to-date, so I thank this issue is valid even from the configuration standpoint.
@dunglas do you have an ETA on the next release for this package ? This is a blocking bug for any configuration as far as I understand.
from panther.
Release 2.1.1 has been made by @dunglas on Dec 3rd. This solves the issue:
With 2.1.0:
$ composer test
> phpunit
PHPUnit 10.5.0 by Sebastian Bergmann and contributors.
Runtime: PHP 8.1.13
Configuration: /var/www/phpunit.xml.dist
............ 12 / 12 (100%)
Time: 00:10.290, Memory: 30.00 MB
There were 24 PHPUnit test runner warnings:
1) Exception in third-party event subscriber: Too few arguments to function Symfony\Component\Panther\ServerExtensionLegacy::executeBeforeTest(), 0 passed in /var/www/vendor/symfony/panther/src/ServerExtension.php on line 81 and exactly 1 expected
[...]
With 2.1.1:
$ composer update symfony/panther
Loading composer repositories with package information
Updating dependencies
Lock file operations: 0 installs, 1 update, 0 removals
- Upgrading symfony/panther (v2.1.0 => v2.1.1)
Writing lock file
[...]
$ composer test
> phpunit
PHPUnit 10.5.0 by Sebastian Bergmann and contributors.
Runtime: PHP 8.1.13
Configuration: /var/www/phpunit.xml.dist
............ 12 / 12 (100%)
Time: 00:09.515, Memory: 30.00 MB
OK (12 tests, 31 assertions)
This ticket can be closed.
from panther.
This seems to be related to #608 and has already been fixed with #609, but didn't make it into a release so far.
I had the same error and can confirm that changing it to <bootstrap class="Symfony\Component\Panther\ServerExtension"/>
and requirering a develement version with "symfony/panther": "dev-main#077a68c"
via composer solves the issue.
from panther.
Related Issues (20)
- No screenshot taken HOT 1
- TransportException
- Problem with detect driver HOT 3
- submit form isn't submitting
- How to use proxy with the firefox client? HOT 4
- Unable to run even a basic test HOT 2
- Can we add an option to not start a geckodriver listener?
- Not compatible with phpunit 10.4.0 HOT 6
- Failed to read marionette port error when using createFirefoxClient()
- Tag new release for Symfony 7 HOT 4
- TypeError is thrown when calling Crawler::html() HOT 1
- Error: Call to undefined method Symfony\Component\Panther\Client::assertSelectorIsNotVisible()
- Custom binary path to Firefox
- Chrome client crontab
- Selecting a radio button with value "0" is not possible if another element is pre-selected HOT 1
- Errors starting the webserver get hidden
- How to wait for all images to be loaded? HOT 2
- Docs improvement to help on how resize browser window
- CSS/JS not loading while working with AssetMapper
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from panther.