Giter Site home page Giter Site logo

Comments (6)

rosolko avatar rosolko commented on July 20, 2024

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.

aonorgate avatar aonorgate commented on July 20, 2024

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.

rosolko avatar rosolko commented on July 20, 2024

If use latest stable 3 version of selenium not an alpha one what result will be?

from webdrivermanager.net.

aonorgate avatar aonorgate commented on July 20, 2024

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.

aonorgate avatar aonorgate commented on July 20, 2024

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.

rosolko avatar rosolko commented on July 20, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.