Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- private static EdgeDriverService edgeDriverService;
- private static WebDriver driver;
- private static void createAndStartEdgeService() {
- try {
- edgeDriverService = new EdgeDriverService.Builder()
- .usingDriverExecutable(new File("C:\\Windows\\SysWOW64\\MicrosoftWebDriver.exe"))
- .usingAnyFreePort()
- .build();
- edgeDriverService.start();
- driver = new RemoteWebDriver(edgeDriverService.getUrl(), DesiredCapabilities.edge());
- }
- catch (IOException e) {
- //
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement