Comments (6)
Got it.
Looks like I don't catch the problem.
As I understood, the latest download version of edge driver is incompatible with latest edge browser, I am right?
If yes, just pre-configure edge config to get compatible version of driver.
If no, please, describe a problem more specifically.
Thanks!
from webdrivermanager.net.
So, using Edge Chromium 80, Legacy Edge 18362 and Selenium 4.0.0_alpha04:
LegacyEdgeConfig does not fully work to drive the Legacy Edge browser. The following code will Launch the Browser but cannot accept commands:
var options = new EdgeOptions();
new DriverManager().SetUpDriver(new LegacyEdgeConfig());
EdgeDriver Driver = new EdgeDriver(options);
If i use EdgeConfig it works correctly for the Legacy Edge browser:
var options = new EdgeOptions();
new DriverManager().SetUpDriver(new EdgeConfig());
EdgeDriver Driver = new EdgeDriver(options);
Following the new initialization process for build 80 (as per here: https://docs.microsoft.com/en-us/microsoft-edge/webdriver-chromium) I would expect this code to work but instead it just launches the Legacy Edge browser:
var options = new EdgeOptions(false);
options.BinaryLocation = @"C:\Program Files (x86)\Microsoft\Edge Beta\Application\msedge.exe";
new DriverManager().SetUpDriver(new EdgeConfig());
EdgeDriver Driver = new EdgeDriver(options);
It looks to be that the recent changes to the Webdriver by MS have not been incorporated into DriverManager
from webdrivermanager.net.
If use latest stable 3 version of selenium not an alpha one what result will be?
from webdrivermanager.net.
With latest stable 3.141:
LegacyEdgeConfig - Launches legacy browser but unable to command - same behaviour
var options = new EdgeOptions();
new DriverManager().SetUpDriver(new LegacyEdgeConfig());
EdgeDriver Driver = new EdgeDriver(options);
EdgeConfig - Launches legacy browser and can command - same behaviour
var options = new EdgeOptions();
new DriverManager().SetUpDriver(new EdgeConfig());
EdgeDriver Driver = new EdgeDriver(options);
The final code snippet form above is not supported in Selenium 3, MS has an alternative but strongly pushes using the Alpha releases. If I use the other approach it initialises a RemoteWebDriver and has no need for DriverManager.
So with the latest stable release of Selenium, Edge Chromium build 80 cannot be used with DriverManager due to the manner in which it must now be launched using the latest EdgeOptions or via legacy code and a RemoteWebDriver.
Also LegacyEdgeConfig doesn't appear to work, I am unsure if this is new with build 80 of Edge as i have only recently begun using DriverManager.
from webdrivermanager.net.
What may also be complicating things is that from v18 of the Legacy Edge WebDriver onwards, no exe is provided for download and the WebDriver is a developer feature of Windows10.
See here: https://developer.microsoft.com/en-us/microsoft-edge/tools/webdriver/
I have found it is still possible to locate the WebDriver exe locally once the feature has been enabled but I suspect DriverManager will now be stuck using v17.
The Edge Chromium WebDrivers remain available for download.
from webdrivermanager.net.
Update edge config to use latest version from a site provided before.
Hope it will fix the problem.
Also closes #64
from webdrivermanager.net.
Related Issues (20)
- Help needed HOT 1
- Edge driver issue with jenkins
- Need "Control Flow Guard" Enabled On Assemblies
- [🐛 Bug]: WebDriverManager.Net not working with new chromedriver endpoints for Chrome since version 115 HOT 42
- SetUpDriver(new FirefoxConfig()) returns null! HOT 2
- FileLoadException with `System.Text.Json` when upgrading to v2.17.0 HOT 3
- Consider replace WebDriverManager by Selenium built-in SeleniumManager HOT 7
- Product version of .dll does not update with e.g. netsparkle HOT 1
- This version of ChromeDriver only supports Chrome version 114 HOT 8
- SetUpDriver attempting to write to Group Policy Directory HOT 2
- (Suggestion) Set chromedriver cache HOT 1
- Chrome on Linux gives "System.Exception : Unable to locate installed browser for runtime platform Unix" HOT 1
- VersionResolveStrategy.MatchingBrowser); -- Cannot implicitly convert type 'void' to 'string' HOT 4
- System.Reflection.TargetInvocationException : Exception has been thrown by the target of an invocation. ----> System.InvalidOperationException : session not created: This version of ChromeDriver only supports Chrome version 116 Current browser version is 118.0.5993.71 with binary path C:\Program Files\Google\Chrome\Application\chrome.exe (SessionNotCreated) HOT 3
- Getting Error with calling the WebDriverManager to get the lastest exe
- can not download new chrome driver from today as there have changed directory chrome version 122 HOT 4
- WebDriverManager for .Net - DriverManager + VersionResolveStrategy.MatchingBrowser throws a System.IO.FileNotFoundException HOT 2
- Any way to automatically download latest Chrome (not chromedriver)? HOT 2
- WebDriverManager throws next issue: System.Net.Http.HttpRequestException: An error occurred while sending the request.
- Getting a ThreadAbortError when calling RemoveZip(zipPath); HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from webdrivermanager.net.