Skip to content

Commit f86a7c0

Browse files
committed
[rb] add debug message for location of screenshot
1 parent 8e45d35 commit f86a7c0

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

rb/lib/selenium/webdriver/common/takes_screenshot.rb

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,7 @@ def save_screenshot(png_path, full_page: false)
3636
'It should end with .png extension',
3737
id: :screenshot
3838
end
39+
WebDriver.logger.debug("Saving screenshot to #{Dir.pwd}/#{png_path}")
3940
File.open(png_path, 'wb') { |f| f << screenshot_as(:png, full_page: full_page) }
4041
end
4142

0 commit comments

Comments
 (0)