From 6757178029c8b7f45cfd71f80e831eaceacd6fba Mon Sep 17 00:00:00 2001 From: dunand Date: Wed, 13 Jun 2018 20:14:32 +0000 Subject: [PATCH] Update Screenshot.java Change default filename to be more inline with Python Robot. --- .../markusbernhardt/seleniumlibrary/keywords/Screenshot.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/java/com/github/markusbernhardt/seleniumlibrary/keywords/Screenshot.java b/src/main/java/com/github/markusbernhardt/seleniumlibrary/keywords/Screenshot.java index 2d529b7..87ee192 100644 --- a/src/main/java/com/github/markusbernhardt/seleniumlibrary/keywords/Screenshot.java +++ b/src/main/java/com/github/markusbernhardt/seleniumlibrary/keywords/Screenshot.java @@ -57,7 +57,7 @@ public String setScreenshotDirectory(String path) { "The ``filename`` argument specifies the name of the file to write the screenshot into. If no filename is given, the screenshot is saved into file selenium-screenshot-.png under the directory where the Robot Framework log file is written into. The filename is also considered relative to the same directory, if it is not given in absolute format.\r\n" + "\r\n" + "A CSS can be used to modify how the screenshot is taken. By default the background color is changed to avoid possible problems with background leaking when the page layout is somehow broken.") - @ArgumentNames({ "filename=NONE" }) + @ArgumentNames({ "filename=selenium-screenshot-{index}.png" }) public void capturePageScreenshot(String...params) { String filename = robot.getParamsValue(params, 0, null); File logdir = screenshotDir != null ? screenshotDir : logging.getLogDir();