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
mloughery reporting issues like this here is perfectly fine. If the issue needs to go through Selenium, we can help direct it over there, but for something that is specific to the MSEdgeDriver, I work on that team, so I can likely help.
In this case, have you seen this article we wrote? https://docs.microsoft.com/en-us/microsoft-edge/webdriver-chromium?tabs=c-sharp
I think it addresses your issue with the EdgeDriverService:
using (var service = EdgeDriverService.CreateChromiumService())
{
service.UseVerboseLogging = true;
var driver = new EdgeDriver(service);
}
Does that help?
-John
- mlougheryMay 13, 2020Copper Contributor
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
- johnjansenMay 14, 2020Iron Contributor
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
- johnjansenMay 13, 2020Iron Contributor
mloughery ah, sorry I didn't click the link to see that you already read the article 🙂
If this is specific to the Java bindings, then it should go to Selenium. But before doing that, I'll check here on whether we have status for updated language bindings.