@@ -126,18 +126,6 @@ public RemoteWebDriver(CommandExecutor executor, Capabilities capabilities) {
126
126
((NeedsLocalLogs )executor ).setLocalLogs (localLogs );
127
127
}
128
128
129
- try {
130
- startClient (capabilities );
131
- } catch (RuntimeException e ) {
132
- try {
133
- stopClient (capabilities );
134
- } catch (Exception ignored ) {
135
- // Ignore the clean-up exception. We'll propagate the original failure.
136
- }
137
-
138
- throw e ;
139
- }
140
-
141
129
try {
142
130
startSession (capabilities );
143
131
} catch (RuntimeException e ) {
@@ -259,48 +247,6 @@ protected void startSession(Capabilities capabilities) {
259
247
sessionId = new SessionId (response .getSessionId ());
260
248
}
261
249
262
- /**
263
- * Method called before {@link #startSession(Capabilities) starting a new session}. The default
264
- * implementation is a no-op, but subtypes should override this method to define custom behavior.
265
- *
266
- * @deprecated No longer used, as behaviour is now in {@link CommandExecutor} instances.
267
- */
268
- @ Deprecated
269
- protected void startClient () {
270
- }
271
-
272
- /**
273
- * Method called before {@link #startSession(Capabilities) starting a new session}. The default
274
- * implementation is a no-op, but subtypes should override this method to define custom behavior.
275
- *
276
- * @deprecated No longer used, as behaviour is now in {@link CommandExecutor} instances.
277
- */
278
- @ Deprecated
279
- protected void startClient (Capabilities capabilities ) {
280
- startClient ();
281
- }
282
-
283
- /**
284
- * Method called after executing a {@link #quit()} command. The default implementation is a no-op,
285
- * but subtypes should override this method to define custom behavior.
286
- *
287
- * @deprecated No longer used, as behaviour is now in {@link CommandExecutor} instances.
288
- */
289
- @ Deprecated
290
- protected void stopClient () {
291
- }
292
-
293
- /**
294
- * Method called after executing a {@link #quit()} command. The default implementation is a no-op,
295
- * but subtypes should override this method to define custom behavior.
296
- *
297
- * @deprecated No longer used, as behaviour is now in {@link CommandExecutor} instances.
298
- */
299
- @ Deprecated
300
- protected void stopClient (Capabilities capabilities ) {
301
- stopClient ();
302
- }
303
-
304
250
public ErrorHandler getErrorHandler () {
305
251
return errorHandler ;
306
252
}
@@ -497,7 +443,6 @@ public void quit() {
497
443
execute (DriverCommand .QUIT );
498
444
} finally {
499
445
sessionId = null ;
500
- stopClient ();
501
446
}
502
447
}
503
448
0 commit comments