Skip to content

Commit cb22be8

Browse files
authored
fix(webdriver): screenshots for sessions (#4748)
* fix: screenshots for sessions
1 parent 117c6c1 commit cb22be8

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Diff for: lib/helper/WebDriver.js

+2-2
Original file line numberDiff line numberDiff line change
@@ -1788,14 +1788,14 @@ class WebDriver extends Helper {
17881788

17891789
if (browser) {
17901790
this.debug(`Screenshot of ${sessionName} session has been saved to ${outputFile}`)
1791-
return browser.saveScreenshot(outputFile)
1791+
await browser.saveScreenshot(outputFile)
17921792
}
17931793
}
17941794
}
17951795

17961796
if (!fullPage) {
17971797
this.debug(`Screenshot has been saved to ${outputFile}`)
1798-
return this.browser.saveScreenshot(outputFile)
1798+
await this.browser.saveScreenshot(outputFile)
17991799
}
18001800

18011801
const originalWindowSize = await this.browser.getWindowSize()

0 commit comments

Comments
 (0)