Skip to content

Commit eaf22a4

Browse files
committed
Error handling for startSession is handled in the parent class now.
1 parent a459010 commit eaf22a4

File tree

1 file changed

+0
-16
lines changed

1 file changed

+0
-16
lines changed

java/client/src/org/openqa/selenium/chrome/ChromeDriver.java

-16
Original file line numberDiff line numberDiff line change
@@ -173,20 +173,4 @@ public <X> X getScreenshotAs(OutputType<X> target) {
173173
// ... and convert it.
174174
return target.convertFromBase64Png(base64);
175175
}
176-
177-
@Override
178-
protected void startSession(Capabilities desiredCapabilities,
179-
Capabilities requiredCapabilities) {
180-
try {
181-
super.startSession(desiredCapabilities, requiredCapabilities);
182-
} catch (WebDriverException e) {
183-
try {
184-
quit();
185-
} catch (Throwable t) {
186-
// Ignoring to report the exception thrown earlier.
187-
}
188-
189-
throw e;
190-
}
191-
}
192176
}

0 commit comments

Comments
 (0)