We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents db708e9 + 0ee5042 commit d7b4d2fCopy full SHA for d7b4d2f
src/main/java/com/github/markusbernhardt/seleniumlibrary/keywords/Screenshot.java
@@ -114,6 +114,10 @@ protected String normalizeFilename(String filename) {
114
if (filename == null) {
115
screenshotIndex++;
116
filename = String.format("selenium-screenshot-%d.png", screenshotIndex);
117
+ } else if(filename.contains("{index}")) {
118
+ screenshotIndex++;
119
+ filename = filename.replace("{index}", "%d");
120
+ filename = String.format(filename, screenshotIndex);
121
} else {
122
filename = filename.replace('/', File.separatorChar);
123
}
0 commit comments