Skip to content

Commit

Permalink
Updated Readme
Browse files Browse the repository at this point in the history
  • Loading branch information
Kartikeya99 committed Jun 5, 2019
1 parent feac510 commit cebb963
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
1 change: 1 addition & 0 deletions README.md
Expand Up @@ -71,6 +71,7 @@ It is exactly same as `seeVisualDiff` function, only an additional `selector` CS

Third one is the `screenshotElement` which basically takes screenshot of the element. Selector for the element must be provided.
It saves the image in the output directory as mentioned in the config folder.
This method only works with puppeteer.
```
I.screenshotElement("selectorForElement", "nameForImage");
```
Expand Down
3 changes: 1 addition & 2 deletions index.js
Expand Up @@ -72,7 +72,7 @@ class ResembleHelper extends Helper {
* Take screenshot of individual element.
* @param selector selector of the element to be screenshotted
* @param name name of the image
* @returns {Promise<void}
* @returns {Promise<void>}
*/
async screenshotElement(selector, name) {
const helper = this._getHelper();
Expand Down Expand Up @@ -236,5 +236,4 @@ class ResembleHelper extends Helper {
throw new Error('No matching helper found. Supported helpers: WebDriver/Appium/Puppeteer');
}
}

module.exports = ResembleHelper;

0 comments on commit cebb963

Please sign in to comment.