diff --git a/Browser/keywords/browser_control.py b/Browser/keywords/browser_control.py index e9414d200..c86694da3 100644 --- a/Browser/keywords/browser_control.py +++ b/Browser/keywords/browser_control.py @@ -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`` Filename into which to save. The file will be saved into the robot framework output directory by default.