Skip to content

Commit e455840

Browse files
[java] increasing of properties scope for better appium compatibility (#14183)
Co-authored-by: Puja Jagani <[email protected]>
1 parent 0cd8bbc commit e455840

File tree

4 files changed

+12
-12
lines changed

4 files changed

+12
-12
lines changed

java/src/org/openqa/selenium/remote/HttpCommandExecutor.java

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -44,11 +44,11 @@
4444
public class HttpCommandExecutor implements CommandExecutor, NeedsLocalLogs {
4545

4646
private final URL remoteServer;
47-
private final HttpClient client;
47+
public final HttpClient client;
4848
private final HttpClient.Factory httpClientFactory;
4949
private final Map<String, CommandInfo> additionalCommands;
50-
private CommandCodec<HttpRequest> commandCodec;
51-
private ResponseCodec<HttpResponse> responseCodec;
50+
protected CommandCodec<HttpRequest> commandCodec;
51+
protected ResponseCodec<HttpResponse> responseCodec;
5252

5353
private LocalLogs logs = LocalLogs.getNullLogger();
5454

java/src/org/openqa/selenium/remote/RemoteWebDriver.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -118,7 +118,7 @@ public class RemoteWebDriver
118118
private Level level = Level.FINE;
119119
private ErrorHandler errorHandler = new ErrorHandler();
120120
private CommandExecutor executor;
121-
private Capabilities capabilities;
121+
protected Capabilities capabilities;
122122
private SessionId sessionId;
123123
private FileDetector fileDetector = new UselessFileDetector();
124124
private ExecuteMethod executeMethod;

java/src/org/openqa/selenium/remote/service/DriverService.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -355,7 +355,7 @@ private enum StartOrDie {
355355
public abstract static class Builder<DS extends DriverService, B extends Builder<?, ?>> {
356356

357357
private int port = 0;
358-
private File exe = null;
358+
public File exe = null;
359359
private Map<String, String> environment = emptyMap();
360360
private File logFile;
361361
private Duration timeout;

java/src/org/openqa/selenium/support/ui/FluentWait.java

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -66,15 +66,15 @@ public class FluentWait<T> implements Wait<T> {
6666

6767
private static final Duration DEFAULT_WAIT_DURATION = Duration.ofMillis(DEFAULT_SLEEP_TIMEOUT);
6868

69-
private final T input;
70-
private final java.time.Clock clock;
71-
private final Sleeper sleeper;
69+
protected final T input;
70+
protected final java.time.Clock clock;
71+
protected final Sleeper sleeper;
7272

73-
private Duration timeout = DEFAULT_WAIT_DURATION;
74-
private Duration interval = DEFAULT_WAIT_DURATION;
75-
private Supplier<String> messageSupplier = () -> null;
73+
protected Duration timeout = DEFAULT_WAIT_DURATION;
74+
protected Duration interval = DEFAULT_WAIT_DURATION;
75+
protected Supplier<String> messageSupplier = () -> null;
7676

77-
private final List<Class<? extends Throwable>> ignoredExceptions = new ArrayList<>();
77+
protected final List<Class<? extends Throwable>> ignoredExceptions = new ArrayList<>();
7878

7979
/**
8080
* @param input The input value to pass to the evaluated conditions.

0 commit comments

Comments
 (0)