Skip to content

Commit

Permalink
[java] Add javadoc to support event classes (#13199)
Browse files Browse the repository at this point in the history
* add javadoc to decorator and listener classes

* remove google common dep

* re add input state

* add remote webdriver dep


---------

Co-authored-by: Titus Fortner <titusfortner@users.noreply.github.com>
  • Loading branch information
RevealOscar and titusfortner committed Nov 29, 2023
1 parent 6205337 commit 240e17b
Show file tree
Hide file tree
Showing 3 changed files with 759 additions and 5 deletions.
1 change: 1 addition & 0 deletions java/src/org/openqa/selenium/support/events/BUILD.bazel
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",
],
)
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

0 comments on commit 240e17b

Please sign in to comment.