Skip to content
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] Add javadoc to support event classes #13199

Merged
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions java/src/org/openqa/selenium/support/events/BUILD.bazel
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ java_library(
],
deps = [
"//java/src/org/openqa/selenium:core",
"//java/src/org/openqa/selenium/remote",
"//java/src/org/openqa/selenium/support/decorators",
],
)
Original file line number Diff line number Diff line change
Expand Up @@ -166,10 +166,17 @@ public class EventFiringDecorator<T extends WebDriver> extends WebDriverDecorato

private final List<WebDriverListener> listeners;

/**
* @param listeners the listeners to notify about events happening in the decorated WebDriver
*/
public EventFiringDecorator(WebDriverListener... listeners) {
this.listeners = Arrays.asList(listeners);
}

/**
* @param targetClass the class of the WebDriver to be decorated
* @param listeners the listeners to notify about events happening in the decorated WebDriver
*/
public EventFiringDecorator(Class<T> targetClass, WebDriverListener... listeners) {
super(targetClass);
this.listeners = Arrays.asList(listeners);
Expand Down
Loading