Skip to content

Commit

Permalink
Add a default screenshot filename
Browse files Browse the repository at this point in the history
  • Loading branch information
xylix committed Aug 28, 2020
1 parent a7fb1f5 commit aab154f
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion Browser/keywords/browser_control.py
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,11 @@ def _get_screenshot_path(self, filename: str) -> Path:
return path

@keyword(tags=["PageContent"])
def take_screenshot(self, filename: str = "", selector: str = ""):
def take_screenshot(
self,
filename: str = "robotframework-browser-screenshot-{index}",
selector: str = "",
):
"""Takes a screenshot of the current window and saves it to ``path``. Saves it as a png.
``filename`` <str> Filename into which to save. The file will be saved into the robot framework output directory by default.
Expand Down

0 comments on commit aab154f

Please sign in to comment.