You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/helpers/Playwright.md
+1-20Lines changed: 1 addition & 20 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1817,30 +1817,11 @@ Optionally resize the window to the full available page `scrollHeight` and `scro
1817
1817
```js
1818
1818
I.saveScreenshot('debug.png')
1819
1819
I.saveScreenshot('debug.png', true) //resizes to available scrollHeight and scrollWidth before taking screenshot
1820
+
I.saveScreenshot('customFolder/debug.png') //saves to customFolder/debug.png
1820
1821
```
1821
1822
1822
1823
#### Parameters
1823
1824
1824
-
-`fileName`**[string][9]** file name to save.
1825
-
-`fullPage`**[boolean][26]** (optional, `false` by default) flag to enable fullscreen screenshot mode.
1826
-
-`customPath`**[string][9]** (optional, `''` by default) custom path to save file.
1827
-
1828
-
Returns **void** automatically synchronized promise through #recorder
1829
-
1830
-
### saveScreenshotToPath
1831
-
1832
-
Saves a screenshot to custom folder (set in codecept.conf.ts or codecept.conf.js).
1833
-
Filename is relative to custom folder.
1834
-
Optionally resize the window to the full available page `scrollHeight` and `scrollWidth` to capture the entire page by passing `true` in as the second argument.
Copy file name to clipboardExpand all lines: docs/helpers/Puppeteer.md
+1-20Lines changed: 1 addition & 20 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1539,30 +1539,11 @@ Optionally resize the window to the full available page `scrollHeight` and `scro
1539
1539
```js
1540
1540
I.saveScreenshot('debug.png')
1541
1541
I.saveScreenshot('debug.png', true) //resizes to available scrollHeight and scrollWidth before taking screenshot
1542
+
I.saveScreenshot('customFolder/debug.png') //saves to customFolder/debug.png
1542
1543
```
1543
1544
1544
1545
#### Parameters
1545
1546
1546
-
- `fileName` **[string][6]** file name to save.
1547
-
- `fullPage` **[boolean][23]** (optional, `false` by default) flag to enable fullscreen screenshot mode.
1548
-
- `customPath` **[string][6]** (optional, `''` by default) custom path to save file.
1549
-
1550
-
Returns **void** automatically synchronized promise through #recorder
1551
-
1552
-
### saveScreenshotToPath
1553
-
1554
-
Saves a screenshot to custom folder (set in codecept.conf.ts or codecept.conf.js).
1555
-
Filename is relative to custom folder.
1556
-
Optionally resize the window to the full available page `scrollHeight` and `scrollWidth` to capture the entire page by passing `true` in as the second argument.
Copy file name to clipboardExpand all lines: docs/helpers/WebDriver.md
+1-20Lines changed: 1 addition & 20 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1659,30 +1659,11 @@ Optionally resize the window to the full available page `scrollHeight` and `scro
1659
1659
```js
1660
1660
I.saveScreenshot('debug.png')
1661
1661
I.saveScreenshot('debug.png', true) //resizes to available scrollHeight and scrollWidth before taking screenshot
1662
+
I.saveScreenshot('customFolder/debug.png') //saves to customFolder/debug.png
1662
1663
```
1663
1664
1664
1665
#### Parameters
1665
1666
1666
-
- `fileName` **[string][18]** file name to save.
1667
-
- `fullPage` **[boolean][33]** (optional, `false` by default) flag to enable fullscreen screenshot mode.
1668
-
- `customPath` **[string][18]** (optional, `''` by default) custom path to save file.
1669
-
1670
-
Returns **void** automatically synchronized promise through #recorder
1671
-
1672
-
### saveScreenshotToPath
1673
-
1674
-
Saves a screenshot to custom folder (set in codecept.conf.ts or codecept.conf.js).
1675
-
Filename is relative to custom folder.
1676
-
Optionally resize the window to the full available page `scrollHeight` and `scrollWidth` to capture the entire page by passing `true` in as the second argument.
0 commit comments