diff --git a/java/src/org/openqa/selenium/remote/HttpCommandExecutor.java b/java/src/org/openqa/selenium/remote/HttpCommandExecutor.java index d636048364d0d..03fc84bc45b19 100644 --- a/java/src/org/openqa/selenium/remote/HttpCommandExecutor.java +++ b/java/src/org/openqa/selenium/remote/HttpCommandExecutor.java @@ -44,11 +44,11 @@ public class HttpCommandExecutor implements CommandExecutor, NeedsLocalLogs { private final URL remoteServer; - private final HttpClient client; + public final HttpClient client; private final HttpClient.Factory httpClientFactory; private final Map additionalCommands; - private CommandCodec commandCodec; - private ResponseCodec responseCodec; + protected CommandCodec commandCodec; + protected ResponseCodec responseCodec; private LocalLogs logs = LocalLogs.getNullLogger(); diff --git a/java/src/org/openqa/selenium/remote/RemoteWebDriver.java b/java/src/org/openqa/selenium/remote/RemoteWebDriver.java index 4afa13ea9be83..58f08763b2ebd 100644 --- a/java/src/org/openqa/selenium/remote/RemoteWebDriver.java +++ b/java/src/org/openqa/selenium/remote/RemoteWebDriver.java @@ -118,7 +118,7 @@ public class RemoteWebDriver private Level level = Level.FINE; private ErrorHandler errorHandler = new ErrorHandler(); private CommandExecutor executor; - private Capabilities capabilities; + protected Capabilities capabilities; private SessionId sessionId; private FileDetector fileDetector = new UselessFileDetector(); private ExecuteMethod executeMethod; diff --git a/java/src/org/openqa/selenium/remote/service/DriverService.java b/java/src/org/openqa/selenium/remote/service/DriverService.java index 90fb1f2ca127d..0e0c04f693d9c 100644 --- a/java/src/org/openqa/selenium/remote/service/DriverService.java +++ b/java/src/org/openqa/selenium/remote/service/DriverService.java @@ -355,7 +355,7 @@ private enum StartOrDie { public abstract static class Builder> { private int port = 0; - private File exe = null; + public File exe = null; private Map environment = emptyMap(); private File logFile; private Duration timeout; diff --git a/java/src/org/openqa/selenium/support/ui/FluentWait.java b/java/src/org/openqa/selenium/support/ui/FluentWait.java index b8bd205c8b961..2c02e5f424557 100644 --- a/java/src/org/openqa/selenium/support/ui/FluentWait.java +++ b/java/src/org/openqa/selenium/support/ui/FluentWait.java @@ -66,15 +66,15 @@ public class FluentWait implements Wait { private static final Duration DEFAULT_WAIT_DURATION = Duration.ofMillis(DEFAULT_SLEEP_TIMEOUT); - private final T input; - private final java.time.Clock clock; - private final Sleeper sleeper; + protected final T input; + protected final java.time.Clock clock; + protected final Sleeper sleeper; - private Duration timeout = DEFAULT_WAIT_DURATION; - private Duration interval = DEFAULT_WAIT_DURATION; - private Supplier messageSupplier = () -> null; + protected Duration timeout = DEFAULT_WAIT_DURATION; + protected Duration interval = DEFAULT_WAIT_DURATION; + protected Supplier messageSupplier = () -> null; - private final List> ignoredExceptions = new ArrayList<>(); + protected final List> ignoredExceptions = new ArrayList<>(); /** * @param input The input value to pass to the evaluated conditions.