PHP code example of webfactory / behat-mink-failure-screenshots
1. Go to this page and download the library: Download webfactory/behat-mink-failure-screenshots library. Choose the download type require. 2. Extract the ZIP file and open the index.php. 3. Add this code to the index.php.
<?php
require_once('vendor/autoload.php');
/* Start to develop here. Best regards https://php-download.com/ */
webfactory / behat-mink-failure-screenshots example snippets
use Behat\Config\Config;
use Behat\Config\Extension;
use Webfactory\BehatMinkFailureScreenshots\ServiceContainer\Extension as BehatFailureScreenshotsExtension;
return (new Config())
->withExtension(new Extension(BehatFailureScreenshotsExtension::class, [
'directory' => '%paths.base%/tmp',
'autoClean' => false,
]));