Skip to content

Commit b1c48c0

Browse files
committed
[java] Deleting debug print and converting an unused field to a local variable
1 parent 2a5118b commit b1c48c0

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

java/client/src/org/openqa/selenium/firefox/FirefoxDriver.java

+1-4
Original file line numberDiff line numberDiff line change
@@ -170,7 +170,6 @@ public FirefoxDriverCommandExecutor(DriverService service) {
170170

171171
protected FirefoxBinary binary;
172172
private RemoteWebStorage webStorage;
173-
private Connection connection;
174173
private DevTools devTools;
175174

176175
public FirefoxDriver() {
@@ -331,7 +330,6 @@ private static Capabilities dropCapabilities(Capabilities capabilities) {
331330

332331
@Override
333332
public DevTools getDevTools() {
334-
System.out.println(getCapabilities());
335333
if (devTools == null) {
336334
Object debuggerAddress = getCapabilities().getCapability("moz:debuggerAddress");
337335
if (debuggerAddress == null) {
@@ -353,12 +351,11 @@ public DevTools getDevTools() {
353351
throw new WebDriverException("The driver did not provide CDP endpoint");
354352
}
355353

356-
System.out.println(debuggerUrl);
357354
URI wsUri = new URI((String) debuggerUrl);
358355
ClientConfig wsConfig = ClientConfig.defaultConfig().baseUri(wsUri);
359356
HttpClient wsClient = clientFactory.createClient(wsConfig);
360357

361-
connection = new Connection(wsClient, wsUri.toString());
358+
Connection connection = new Connection(wsClient, wsUri.toString());
362359
CdpInfo cdpInfo = new CdpVersionFinder().match("86.0").orElseGet(NoOpCdpInfo::new);
363360
devTools = new DevTools(cdpInfo::getDomains, connection);
364361
} catch (URISyntaxException e) {

0 commit comments

Comments
 (0)