-
Notifications
You must be signed in to change notification settings - Fork 10
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Discuss whether ScreenCaptureWebDriverEventListener is necessary #985
Comments
|
Convenient for "useful when debugging or troubleshooting", you say. But to use this feature, I need to set up a listener and WebDriver with EventFiringWebDriver (EventFiringDecorator) and embed it in advance. Of course, leaving this functionality in place might have the advantage of leaving it in a suspicious place to begin with, and then turning the flag on when you want to check and take a capture. However, the only case I have ever wanted to refer to a capture is when a test fails, and FunctionTestSupport#failedEvidence is sufficient. If there is a case in the future where we want to take a capture at an arbitrary time, we can call ScreenCapture#saveForced directly, I think. In any case, deprecation means that we will have to recreate it, but we can create a new one when it becomes necessary. |
failedEvidence saves the capture when the test fails, but the removed listener captures the progress of the screen transition. You may not feel much benefit if you maintain the test without changing it, but in tests that involve screen transitions, the cause of failure is often in the middle of the process. Incorporating saveForced into test logic each time is not a very enjoyable task. Also, preparing various means including listeners will be a hint for test implementation and reduce the burden on engineers. It's good to delete unnecessary things according to strict rules, but reducing the burden on engineers also leads to productivity. Of course deprecations need to be lifted, but that's not difficult. |
It was decided as follows.
|
Description
Deprecated
org.openqa.selenium.support.events.EventFiringWebDriver
andorg.openqa.selenium.support.events.WebDriverEventListener
.Along with this, we will discuss whether to delete the
WebDriverEventListenerAdapter
that implementsWebDriverEventListener
and theScreenCaptureWebDriverEventListener
that inherits it.EventFiringWebDriver
is used inTransactionTokenTest
to useScreenCaptureWebDriverEventListener
.Possible Solution
Affect versions
Issue links
The text was updated successfully, but these errors were encountered: