We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 888fb8b commit 86f1c02Copy full SHA for 86f1c02
java/client/test/org/openqa/selenium/testing/drivers/ReflectionBackedDriverSupplier.java
@@ -45,6 +45,11 @@ public WebDriver get() {
45
return null;
46
}
47
48
+ try {
49
+ return driverClass.getConstructor(desiredCapabilities.getClass()).newInstance(desiredCapabilities);
50
+ } catch (InvocationTargetException e) {
51
+ }
52
+
53
return driverClass.getConstructor(Capabilities.class).newInstance(desiredCapabilities);
54
} catch (InvocationTargetException e) {
55
throw new RuntimeException(e.getTargetException());
0 commit comments