fabiang / mink-javascript-errors
Mink extension for handling JavaScript errors
Installs: 55 596
Dependents: 0
Suggesters: 0
Security: 0
Stars: 0
Watchers: 2
Forks: 0
Open Issues: 0
Type:behat-extension
Requires
- php: >=5.6
- behat/mink: ^1.7
- behat/mink-extension: ^2.1
Requires (Dev)
- behat/behat: ^3.0.15
- behat/mink-selenium2-driver: ^1.3
- phpunit/php-invoker: ^1.1
- phpunit/phpunit: ^5.0.9
This package is auto-updated.
Last update: 2024-02-29 03:02:28 UTC
README
This is an extension for Mink that can handle JavaScript errors occuring on a web page. After every step this extension checks for errors and throws them as exceptions. Also AJAX errors are supported via jQuery.
Installation
Install this extension with Composer:
composer require fabiang/mink-javascript-errors=@dev --dev
Configuration
Add the following to your behat.yml
:
default: extensions: Fabiang\Mink\JavaScriptErrors: ~
Load the provided JavaScript file in every of your web pages:
<script src="dist/ErrorHandler.min.js"></script>
If you have loaded jQuery before the ErrorHandler.min.js
the extension automatically handles Ajax errors.