Skip to content

Commit 4b58be2

Browse files
committed
Use capabilities getClass() method (required as of Selenium 4.3.0)
1 parent f2fbd07 commit 4b58be2

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/main/java/io/github/bonigarcia/wdm/webdriver/WebDriverCreator.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@ public synchronized WebDriver createLocalWebDriver(Class<?> browserClass,
5757
WebDriver driver;
5858
if (capabilities != null) {
5959
driver = (WebDriver) browserClass
60-
.getDeclaredConstructor(Capabilities.class)
60+
.getDeclaredConstructor(capabilities.getClass())
6161
.newInstance(capabilities);
6262
} else {
6363
driver = (WebDriver) browserClass.getDeclaredConstructor()

0 commit comments

Comments
 (0)