java
3 TopicsEdgeDriver (v81) no longer supports ability to pass in DriverService as a parameter
Hello Since Edge has been upgraded to v80, it has introduced a "https://docs.microsoft.com/en-us/microsoft-edge/webdriver-chromium?tabs=c-sharp" to our automation. This is documented by Microsoft in the attached link. Ideally I would have liked to remain on Selenium 3 and use the https://github.com/microsoft/edge-selenium-tools but given that my framework is java based that was not an option. To resolve this, then, I updated to Selenium 4 (alpha 5), which supports v81 of Edge Chromium, but only to an extent. The ability to pass in ChromiumEdgeDriverService/EdgeDriverService (not sure which I should even be using now) as a parameter to the EdgeDriver WebDriver has been https://www.javadoc.io/doc/org.seleniumhq.selenium/selenium-edge-driver/latest/org/openqa/selenium/edge/package-summary.html. This is something I rely on to implement a workaround for downloads in headless mode and so I am eager to restore that functionality ASAP. I am not sure if this is something I should be reporting to https://github.com/SeleniumHQ/selenium/issues/new/choose as an improvement or regression, or something I should be raising with yourselves but I am looking for some guidance on what I should do in this instance. Thank you MarkSolved2.9KViews0likes7CommentsAdding Chome Extension to Edge 85 with Selenium Java
I want to add chrome extension from Selenium Java to Newest Edge Version with msedgedriver. But when the browser instance opens the extension is not getting added and developer mode is not i. Edge Developer mode gets turned off when new instance is opened. ii. Allow extensions from other stores is also automatically turned off. I tried different codes with seleenium 4.0 alpha 6.0 as well as with the stable versions. public static WebDriver ini() { System.setProperty("webdriver.edge.driver", "D:\\SeleniumTest\\new\\msedgedriver.exe"); DesiredCapabilities desiredCapabilities = new DesiredCapabilities (); EdgeOptions options = new EdgeOptions(); ArrayList<String> extensionList=new ArrayList<String>(); String extensionLocation="C:\\Program Files (x86)\\Microsoft\\Edge\\Application\\85.0.564.51\\Extensions\\CombinedExtension"; extensionList.add(extensionLocation); options.setCapability( "disable-infobars", true); options.setCapability("extensionPaths", extensionList); options.merge(desiredCapabilities); WebDriver driver = new EdgeDriver(options); return driver; } The above code works fine with edge legacy. Also different other answers i have tried most of them doesnt work. I tried the below code too System.setProperty("webdriver.edge.driver", "<windowsMsEdgeChromiumDriverPath>"); final ChromeOptions chromeOptions = new ChromeOptions(); chromeOptions.setBinary("C:\\Program Files (x86)\\Microsoft\\Edge Beta\\Application\\msedge.exe"); chromeOptions.setExperimentalOption("useAutomationExtension", false); chromeOptions.setExperimentalOption("excludeSwitches", Collections.singletonList("enable-automation")); final EdgeOptions edgeOptions = new EdgeOptions().merge(chromeOptions); final WebDriver webDriver = new EdgeDriver(edgeOptions);Solved2.7KViews0likes4Commentspossible to run java applications in IE mode?
attempting to run java application from IE mode but hit with http error 403.14 when using IE11 it passes right along to the java application The error is confusing because I would be under the impression that directory browsing has to be enabled in the IIS manager for edge to access the application or Edge IE mode, can't run java applications the same as IE. any help would be greatly appreciated!Solved5.3KViews0likes1Comment