Protractor: Feature Request: MicrosoftEdge direct connect support

Created on 20 Jul 2017  路  5Comments  路  Source: angular/protractor

Feature Request

  • Reasons for adopting new feature
    We are heavily relying on Edge browser for our projects so testing in Chrome is not enough.
    We don't want to introduce the dependency of JDK
  • Is this a breaking change? (How will this affect existing functionality)
    No.

Most helpful comment

Because new Edge(Chromium) is very chrome like....you can fake it like this:

exports.config = {
  multiCapabilities: [
    {
      'browserName': 'chrome',
      'goog:chromeOptions': {
        // Faked out chrome binary
        'binary': 'C:\\Program Files (x86)\\Microsoft\\Edge\\Application\\msedge.exe'
      }
    }
  ],
  // Faked out chrome driver
  chromeDriver: './msedgedriver/msedgedriver.exe',

Make sure to download and save the compatible msedgedriver.exe

All 5 comments

Hi @laynelin

Tnx for the feature request. What do you exactly mean with "_We don't want to introduce the dependency of JDK_"?

HI, @wswebcreation ,

If we want to use Edge webdriver and it's not supported by direct connect, we need to use Selenium Server will requires the JDK to be installed. We don't want to install JDK.

Thanks.
Layne.

Hi @laynelin

When you look at the directConnect option of Protractor it relies on webdriver-manager and the "default" drivers it downloads (chrome and geckodriver) Edge is not part of that, see also direct.ts and webdriver-manager.

The feature request can only be implemented when a feature request / change has been implemented in webdriver-manager which makes this a "third-party" feature request.

I would advice you to place a feature request there and therefor I'm going to close the issue here

Because new Edge(Chromium) is very chrome like....you can fake it like this:

exports.config = {
  multiCapabilities: [
    {
      'browserName': 'chrome',
      'goog:chromeOptions': {
        // Faked out chrome binary
        'binary': 'C:\\Program Files (x86)\\Microsoft\\Edge\\Application\\msedge.exe'
      }
    }
  ],
  // Faked out chrome driver
  chromeDriver: './msedgedriver/msedgedriver.exe',

Make sure to download and save the compatible msedgedriver.exe

Because new Edge(Chromium) is very chrome like....you can fake it like this:

exports.config = {
  multiCapabilities: [
    {
      'browserName': 'chrome',
      'goog:chromeOptions': {
        // Faked out chrome binary
        'binary': 'C:\\Program Files (x86)\\Microsoft\\Edge\\Application\\msedge.exe'
      }
    }
  ],
  // Faked out chrome driver
  chromeDriver: './msedgedriver/msedgedriver.exe',

Make sure to download and save the compatible msedgedriver.exe

Hi,

Thanks for the solution.
I have a query how to use EdgeOptions here, because the ChromeOtions block is not working when Edge browser is running.

Was this page helpful?
0 / 5 - 0 ratings