@applitools/spec-driver-puppeteer 1.1.7 → 1.1.9

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -227,7 +227,7 @@ async function visit(page, url) {
227
227
  }
228
228
  exports.visit = visit;
229
229
  async function takeScreenshot(page) {
230
- const result = await page.screenshot({ encoding: 'base64' });
230
+ const result = await page.screenshot({ captureBeyondViewport: false });
231
231
  return result;
232
232
  }
233
233
  exports.takeScreenshot = takeScreenshot;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@applitools/spec-driver-puppeteer",
3
- "version": "1.1.7",
3
+ "version": "1.1.9",
4
4
  "keywords": [
5
5
  "puppeteer",
6
6
  "chrome devtools protocol",
@@ -56,14 +56,14 @@
56
56
  }
57
57
  },
58
58
  "dependencies": {
59
- "@applitools/types": "1.5.7",
60
- "@applitools/utils": "1.3.10"
59
+ "@applitools/types": "1.5.12",
60
+ "@applitools/utils": "1.3.12"
61
61
  },
62
62
  "devDependencies": {
63
63
  "@applitools/api-extractor": "1.2.9",
64
- "@applitools/bongo": "^2.1.6",
64
+ "@applitools/bongo": "^2.2.0",
65
65
  "@applitools/scripts": "1.1.0",
66
- "@applitools/test-utils": "1.4.3",
66
+ "@applitools/test-utils": "1.5.1",
67
67
  "@types/mocha": "^9.1.1",
68
68
  "@types/node": "12",
69
69
  "@typescript-eslint/eslint-plugin": "^5.27.0",
package/types/index.d.ts CHANGED
@@ -21,7 +21,7 @@ export function getDriverInfo(_page: Driver): Promise<import('@applitools/types'
21
21
  export function getTitle(page: Driver): Promise<string>;
22
22
  export function getUrl(page: Driver): Promise<string>;
23
23
  export function visit(page: Driver, url: string): Promise<void>;
24
- export function takeScreenshot(page: Driver): Promise<string>;
24
+ export function takeScreenshot(page: Driver): Promise<Buffer>;
25
25
  export function click(frame: Context, element: Element | Selector): Promise<void>;
26
26
  export function type(frame: Context, element: Element | Selector, keys: string): Promise<void>;
27
27
  export function hover(frame: Context, element: Element | Selector): Promise<void>;