Skip to content

Commit 953a901

Browse files
author
Nils Langner
committed
Merge branch 'master' of github.com:phmLabs/codeception-module-visualception
2 parents 031a3bd + c7c3310 commit 953a901

File tree

1 file changed

+6
-3
lines changed

1 file changed

+6
-3
lines changed

readme.md

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -52,20 +52,23 @@ VisualCeption:
5252
5353
## Usage
5454
55-
VisualCeption is really easy to use. There is only one method that will be added to your WebGuy <code>compareScreenshot</code>. This will be used to name the screenshot and identify the elements that has to be screenshot.
55+
VisualCeption is really easy to use. There are only two method that will be added to your WebGuy <code>seeVisualChanges</code> and <code>dontSeeVisualChanges</code>.
5656
5757
```php
58-
$I->compareScreenshot( "uniqueIdentifier", "elementId" );
58+
$I->seeVisualChanges( "uniqueIdentifier1", "elementId1" );
59+
$I->dontSeeVisualChanges( "uniqueIdentifier2", "elementId2" );
5960
```
6061

6162
* **uniqueIdentifier** For comparing the images it is important to have a stable name. This is the corresponding name.
6263
* **elementId** It is possible to only compare a special div container. The element id can be passed. *You can use all locators that can be used in jQuery*.
6364

6465
**Example Usage**
6566
```php
66-
$I->compareScreenshot( "subNavigation", "#subNav" );
67+
$I->seeVisualChanges( "subNavigation", "#subNav" );
6768
```
6869

70+
If you need more information about the test run please use the command line debug option (-d).
71+
6972
## Restriction
7073

7174
VisualCeption uses the WebDriver module for making the screenshots. As a consequence we are not able to take screenshots via google chrome as the chromedriver does not allow full page screenshots.

0 commit comments

Comments
 (0)