Skip to content

Commit 22ead78

Browse files
Update readme.md
1 parent 9546819 commit 22ead78

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

readme.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -59,14 +59,17 @@ VisualCeption is really easy to use. There are only two method that will be adde
5959
```php
6060
$I->seeVisualChanges( "uniqueIdentifier1", "elementId1" );
6161
$I->dontSeeVisualChanges( "uniqueIdentifier2", "elementId2" );
62+
$I->dontSeeVisualChanges( "uniqueIdentifier3", "elementId3" [, array("excludeElement1", "excludeElement2")] );
6263
```
6364

6465
* **uniqueIdentifier** For comparing the images it is important to have a stable name. This is the corresponding name.
6566
* **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*.
67+
* **excludeElements** Optional parameter as string or an array of strings to exclude an element from the screenshot. Maybe there is an animated image in your test container, so you can ignore it. *You can use all locators that can be used in jQuery*.
6668

6769
**Example Usage**
6870
```php
6971
$I->seeVisualChanges( "subNavigation", "#subNav" );
72+
$I->dontSeeVisualChanges("content", "div.content", array("#intro"));
7073
```
7174

7275
If you need more information about the test run please use the command line debug option (-d).

0 commit comments

Comments
 (0)