Skip to content
This repository was archived by the owner on Feb 2, 2025. It is now read-only.

Commit 6757178

Browse files
authored
Update Screenshot.java
Change default filename to be more inline with Python Robot.
1 parent 0ee5042 commit 6757178

File tree

1 file changed

+1
-1
lines changed
  • src/main/java/com/github/markusbernhardt/seleniumlibrary/keywords

1 file changed

+1
-1
lines changed

src/main/java/com/github/markusbernhardt/seleniumlibrary/keywords/Screenshot.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@ public String setScreenshotDirectory(String path) {
5757
"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-<counter>.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" +
5858
"\r\n" +
5959
"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.")
60-
@ArgumentNames({ "filename=NONE" })
60+
@ArgumentNames({ "filename=selenium-screenshot-{index}.png" })
6161
public void capturePageScreenshot(String...params) {
6262
String filename = robot.getParamsValue(params, 0, null);
6363
File logdir = screenshotDir != null ? screenshotDir : logging.getLogDir();

0 commit comments

Comments
 (0)