-
-
Notifications
You must be signed in to change notification settings - Fork 8.5k
Java. Event firing: improvements and new features #1034
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
Java. Event firing: improvements and new features #1034
Conversation
7eeacfd
to
450477c
Compare
@@ -170,9 +216,9 @@ public String getTitle() { | |||
} | |||
|
|||
public List<WebElement> findElements(By by) { | |||
dispatcher.beforeFindBy(by, null, driver); | |||
castDispatcher(SearchingEventListener.class).beforeFindBy(by, null, driver); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There are some spacing issues.
2581194
to
67df50e
Compare
@bootstraponline format issues were fixed |
2e91d4b
to
efc9a26
Compare
👍 |
efc9a26
to
24eec0b
Compare
24eec0b
to
84f264a
Compare
Problems - Current design doesn't allow end user to log events optionally. E.g. if they want to log only searchings or searchings and navigation then they are forced to leave unimplemented methods in their code - Current design doesn't allow to make any extension without backward compatibility problems because each new method should be implemented or left empty - There are some issue with the logging of thrown exceptions What has been done - WebDriverEvent listener was separated to few interfaces. It is still here and aggretes them (in order to support backward compatibility) - New listeners were added - EventFiringWebdraver was redesigned. The ability to use listeners optionally is provided now Warning!!! There is an issue of backward compatility. Users will face it if they directly use such classes as EventFiringKeyboard, EventFiringMouse, EventFiringTouch. But I hope there not many cases and it is not the critical issue.
Any interest on move this forward? |
|
Problems
if they want to log only searchings or searchings and navigation then
they are forced to leave unimplemented methods in their code
compatibility problems because each new method should be implemented or
left empty
What has been done
here and aggretes them (in order to support backward compatibility)
optionally is provided now
Warning!!! There is an issue of backward compatility. Users will face it
if they directly use such classes as EventFiringKeyboard,
EventFiringMouse, EventFiringTouch. But I hope there not many cases and
it is not the critical issue.
This change is