Details
-
Type: Wish
-
Status: Open
-
Priority: Minor
-
Resolution: Unresolved
-
Affects Version/s: 4.x
-
Fix Version/s: None
-
Component/s: Web Selenium
-
Labels:None
-
Number of attachments :
Description
Hello !
I'm using JBehave + Selenium for some weeks now, my goal is to create a ease of use project for some people in my firm.
I have set up a way the take a screenshot of last webpage before Firefox ends. I extended from FirefoxWebDriverProvider and override end() method.
Is there a way to get it part of the JBehave-Selenium Framework ?
Thanks !
The way JBehave allows snapshots is via the @Before/@After annotations, e.g. in the WebDriverScreenshotOnFailure steps class which can be configured by the user.
We could add another WebDriverScreenshotOnEnd but the problem is that there is no obvious way to inject the name of the path to write the screenshot to. In the case of a failure it's the exception UUID.
If you have a solution you want to share, we'd be happy to consider it.