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

Commit 809ad3b

Browse files
authored
Merge pull request #2 from dunand/dunand-index-screenshot
Update Screenshot.java
2 parents 19a929f + 6757178 commit 809ad3b

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
@@ -59,7 +59,7 @@ public String setScreenshotDirectory(String path) {
5959
"if ``filename`` contains marker {index}, it will be automatically replaced with unique running index preventing files to be overwritten. Indices start from 1.\r\n" +
6060
"\r\n" +
6161
"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.")
62-
@ArgumentNames({ "filename=NONE" })
62+
@ArgumentNames({ "filename=selenium-screenshot-{index}.png" })
6363
public void capturePageScreenshot(String...params) {
6464
String filename = robot.getParamsValue(params, 0, null);
6565
File logdir = screenshotDir != null ? screenshotDir : logging.getLogDir();

0 commit comments

Comments
 (0)