Class ScreenshotService
- java.lang.Object
-
- de.bmiag.tapir.seleniumexecution.service.ScreenshotService
-
@Component("tapirScreenshotService") public class ScreenshotService extends java.lang.Object
This service can be used to make screenshots from the currently displayed browser window.- Since:
- 2.0.0
- Author:
- Oliver Libutzki <[email protected]>
-
-
Constructor Summary
Constructors Constructor Description ScreenshotService()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
takeScreenshot(java.lang.String name)
Takes a screenshot with the given name, if the current web driver supports this.
-
-
-
Method Detail
-
takeScreenshot
public void takeScreenshot(java.lang.String name)
Takes a screenshot with the given name, if the current web driver supports this. Otherwise this method does nothing. The screenshot is sent to all registered observers.- Parameters:
name
- Name of the Screenshot- Since:
- 2.0.0
-
-