PHP code example of svenlie / css-regression
1. Go to this page and download the library: Download svenlie/css-regression 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/ */
svenlie / css-regression example snippets
$I->amOnPage('/');
$I->hideElements('.socialMediaButton');
$I->seeNoDifferenceToReferenceImage('NewsArticle', '#news-article');
yaml
modules:
enabled:
- WebDriver:
...
- \svenlie\CodeceptionCssRegression\Module\CssRegression:
referenceImageDirectory: 'referenceImages'
failImageDirectory: 'failImages'
maxDifference: 0.1
automaticCleanup: true
module: WebDriver
fullScreenshots: false