nosequeweaponer
nosequeweaponer

Reputation: 668

Protractor - Microsoft Edge on MacOs (Not able to automate)

Hi community: I have a project in Protractor which have 4 browsers... Let's make a long short story. Microsoft Edge does not run in Protractor.

I already have installed Microsoft Edge.

Microsoft Edge is up to date.
Version 83.0.478.54 (Official build) (64-bit)

This is a part from my protractor.conf.js

multiCapabilities: [{
    browserName: 'chrome',
      chromeOptions: {
        args: ['--disable-gpu']
      }},
    {browserName: 'firefox',
      'moz:firefoxOptions': {
        args: ['--incognito']
      }},
    {browserName: 'safari',
      'safari.options': {
        args: ['--incognito']
      }},
      {browserName: 'MicrosoftEdge',
      'edge.options': {
        args: ['--incognito']
      }}],

  directConnect: false, 
  baseUrl: 'https://www.xxxxxx.com', 

  seleniumAddress: 'http://localhost:4444/wd/hub',  

The error displays the next:

[MicrosoftEdge #11] /Users/rxxxxxxxx/WebstormProjects/protractor_automation/node_modules/protractor/node_modules/selenium-webdriver/lib/error.js:546
[MicrosoftEdge #11]         throw new ctor(message);
[MicrosoftEdge #11]               ^
[MicrosoftEdge #11] SessionNotCreatedError: Unable to create new service: EdgeDriverService
[MicrosoftEdge #11] Build info: version: '3.141.59', revision: 'e82be7d358', time: '2018-11-14T08:25:53'
[MicrosoftEdge #11] System info: host: 'XXXXXXXXXX', ip: 'XXX.XXX.XXX.XXX', os.name: 'Mac OS X', os.arch: 'x86_64', os.version: '10.14.6', java.version: '1.8.0_221'
[MicrosoftEdge #11] Driver info: driver.version: unknown
...
[MicrosoftEdge #11]     at processTicksAndRejections (internal/process/task_queues.js:97:5)
[MicrosoftEdge #11] From: Task: WebDriver.createSession()
....
[13:34:32] E/launcher - Runner process exited unexpectedly with error code: 1

I already downloaded the msedgedriver and place it to the next folder:

/Users/rxxxxxxxx/WebstormProjects/protractor_automation/node_modules/protractor/node_modules/webdriver-manager/selenium/msedgedriver

Can anybody help me, please?

UPDATE:

Protractor version: 7.0.0

Upvotes: 0

Views: 415

Answers (2)

Elvis Xia - MSFT
Elvis Xia - MSFT

Reputation: 10831

According to Protractor Supported Browsers, Microsoft Edge is currently not supported by Protractor.

You can raise an Feature Request to Protractor Github.

Upvotes: 1

Xotabu4
Xotabu4

Reputation: 3091

There is slightly different flow of running Chromium Edge browser, regular edge driver is not applicable.

Check this article - you need to download special chromium edge driver and set path to it in capabilities:

https://learn.microsoft.com/en-us/microsoft-edge/webdriver-chromium?tabs=javascript

Upvotes: 0

Related Questions