Skip to content

Commit cebb963

Browse files
committed
Updated Readme
1 parent feac510 commit cebb963

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

README.md

+1
Original file line numberDiff line numberDiff line change
@@ -71,6 +71,7 @@ It is exactly same as `seeVisualDiff` function, only an additional `selector` CS
7171

7272
Third one is the `screenshotElement` which basically takes screenshot of the element. Selector for the element must be provided.
7373
It saves the image in the output directory as mentioned in the config folder.
74+
This method only works with puppeteer.
7475
```
7576
I.screenshotElement("selectorForElement", "nameForImage");
7677
```

index.js

+1-2
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,7 @@ class ResembleHelper extends Helper {
7272
* Take screenshot of individual element.
7373
* @param selector selector of the element to be screenshotted
7474
* @param name name of the image
75-
* @returns {Promise<void}
75+
* @returns {Promise<void>}
7676
*/
7777
async screenshotElement(selector, name) {
7878
const helper = this._getHelper();
@@ -236,5 +236,4 @@ class ResembleHelper extends Helper {
236236
throw new Error('No matching helper found. Supported helpers: WebDriver/Appium/Puppeteer');
237237
}
238238
}
239-
240239
module.exports = ResembleHelper;

0 commit comments

Comments
 (0)