Forum Discussion
EdgeDriver (v81) no longer supports ability to pass in DriverService as a parameter
- May 14, 2020
mloughery Look like some things are missing from the Java language bindings. We're going to take a look at getting them updated in the next couple weeks.
Thanks so much for taking the time to post this here.
-John
Hi johnjansen thanks for your quick response.
Yeah I actually linked that article in my question ("breaking change") but I did't find anything to help there. I am using Java with Selenium so that C# code isn't a great deal of help to me. I also checked the javadocs for the https://www.javadoc.io/static/org.seleniumhq.selenium/selenium-edge-driver/4.0.0-alpha-5/org/openqa/selenium/edge/EdgeDriverService.html and https://www.javadoc.io/static/org.seleniumhq.selenium/selenium-edge-driver/4.0.0-alpha-5/org/openqa/selenium/edge/ChromiumEdgeDriverService.html classes and there is no CreateChromiumService method, so I think this issue is very specific to Java.
To clarify a bit more about what exactly I want, below is what I use in Chrome - it is working fine:
ChromeDriverService chromeDriverService = ChromeDriverService.createDefaultService();
driver = new ChromeDriver(chromeDriverService,new ChromeOptions())
And this is what I want to do in Edge Chromium - this results in error as the constructor does not exist for these parameters:
EdgeDriverService edgeDriverService = EdgeDriverService.createDefaultService();
driver = new EdgeDriver(edgeDriverService,new EdgeOptions());
p.s. It's exactly the same for ChromiumEdgeDriverService
Hope that all makes sense.
Thanks,
Mark
mloughery Look like some things are missing from the Java language bindings. We're going to take a look at getting them updated in the next couple weeks.
Thanks so much for taking the time to post this here.
-John
- mlougheryMay 15, 2020Copper Contributor
Hi johnjansen
Thanks so much for your quick responses to my messages. That would be great to have a resolution in place that quickly!
Mark
- mlougheryJun 05, 2020Copper Contributor
This is now working in https://selenium-release.storage.googleapis.com/4.0-alpha-6/selenium-server-4.0.0-alpha-6.jar
Thank you!!