Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit 48a91b8

Browse files
fix broken java tests
1 parent b4225f1 commit 48a91b8

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

‎examples/java/src/test/java/dev/selenium/drivers/ServiceTest.java‎

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@
77
import org.openqa.selenium.chrome.ChromeDriver;
88
import org.openqa.selenium.chrome.ChromeDriverService;
99
import org.openqa.selenium.chrome.ChromeOptions;
10+
import org.openqa.selenium.manager.SeleniumManagerOutput;
1011
import org.openqa.selenium.remote.service.DriverFinder;
1112

1213
import java.io.File;
@@ -16,8 +17,8 @@ public class ServiceTest extends BaseTest {
1617

1718
@BeforeAll
1819
public static void installDriver() {
19-
String location = DriverFinder.getPath(ChromeDriverService.createDefaultService(), new ChromeOptions());
20-
driverLocation = new File(location);
20+
SeleniumManagerOutput.Result location = DriverFinder.getPath(ChromeDriverService.createDefaultService(), new ChromeOptions());
21+
driverLocation = new File(location.driverPath);
2122
}
2223

2324
@AfterEach

0 commit comments

Comments
(0)

AltStyle によって変換されたページ (->オリジナル) /