From d43878f6ea95790d500ea1eb9f05c7c22707a97f Mon Sep 17 00:00:00 2001 From: Aleksey2 Meleshko Date: Tue, 20 Sep 2022 16:49:47 +0200 Subject: [PATCH] Fix javadoc errors --- src/main/java/aquality/selenium/browser/Browser.java | 2 +- .../aquality/selenium/browser/devtools/JavaScriptHandling.java | 2 +- .../aquality/selenium/browser/devtools/NetworkHandling.java | 2 +- src/main/java/aquality/selenium/logging/LoggingParameters.java | 2 ++ 4 files changed, 5 insertions(+), 3 deletions(-) diff --git a/src/main/java/aquality/selenium/browser/Browser.java b/src/main/java/aquality/selenium/browser/Browser.java index e3dcedc..8b6a998 100644 --- a/src/main/java/aquality/selenium/browser/Browser.java +++ b/src/main/java/aquality/selenium/browser/Browser.java @@ -268,7 +268,7 @@ public Object executeScript(final String script, Object... arguments) { /** * Executes JS (jQuery) script. * - * @param script Script pinned with {@link this#javaScriptEngine()}. + * @param script Script pinned with {@link Browser#javaScriptEngine()}. * @param arguments Arguments for the script (web elements, values etc. * @return Result object of script execution */ diff --git a/src/main/java/aquality/selenium/browser/devtools/JavaScriptHandling.java b/src/main/java/aquality/selenium/browser/devtools/JavaScriptHandling.java index 051067f..17e7151 100644 --- a/src/main/java/aquality/selenium/browser/devtools/JavaScriptHandling.java +++ b/src/main/java/aquality/selenium/browser/devtools/JavaScriptHandling.java @@ -204,7 +204,7 @@ public void stopEventMonitoring() { /** * Adds a listener for events that occur when a JavaScript callback with a named binding is executed. - * To add a binding, use {@link this.addJsBinding}. + * To add a binding, use {@link JavaScriptHandling#addScriptCallbackBinding(String)}. * @param listener a listener to add, consuming a name of exposed script. */ public void addBindingCalledListener(Consumer listener) { diff --git a/src/main/java/aquality/selenium/browser/devtools/NetworkHandling.java b/src/main/java/aquality/selenium/browser/devtools/NetworkHandling.java index 985eda3..6783250 100644 --- a/src/main/java/aquality/selenium/browser/devtools/NetworkHandling.java +++ b/src/main/java/aquality/selenium/browser/devtools/NetworkHandling.java @@ -308,7 +308,7 @@ public NetworkInterceptor addResponseHandler(Predicate responseMat * Currently, Selenium supports only a single network interceptor. Any new Network interceptor will override the previous one. * And on {@link NetworkInterceptor#close()} the NetworkInterceptor class just calls the {@link Network#resetNetworkFilter()}, so it's enough to call it. * If multiple network interceptors at the same time would be allowed, we may want to store all - * {@link NetworkInterceptor} classes to call {@link NetworkInterceptor::close()} for each. + * {@link NetworkInterceptor} classes to call {@link NetworkInterceptor#close()} for each. */ public void clearNetworkInterceptor() { resetNetworkFilter(); diff --git a/src/main/java/aquality/selenium/logging/LoggingParameters.java b/src/main/java/aquality/selenium/logging/LoggingParameters.java index 177d5fc..921a38c 100644 --- a/src/main/java/aquality/selenium/logging/LoggingParameters.java +++ b/src/main/java/aquality/selenium/logging/LoggingParameters.java @@ -9,6 +9,8 @@ public class LoggingParameters { /** * Initializes logging parameters. + * @param enabled enabled or not. + * @param logLevel expected log level. */ public LoggingParameters(boolean enabled, LogLevel logLevel) {