Set up Transporter with Microsoft Edge

I use CucumberJs and Gulp to run my e2e tests; However, I need to run them with Microsoft Edge. When I do a gulp protractor , it successfully opens both Chrome and Firefox, since none of them require any drivers, such as IEDriver.exe or EdgeDriver.exe .

Can someone point me to an article or show the steps below, if it's just how to configure Protractor with Microsoft Edge?

I am trying to achieve parallelism by running my tests in multiple browsers; this is what my config looks like:

  exports.config = { framework: 'cucumber', shardTestFiles: true, maxInstances: 2, multiCapabilities: [ { 'browserName': 'MicrosoftEdge', 'platform': 'windows', } }, { 'browserName': 'firefox', loggingPrefs: { driver: 'DEBUG', server: 'INFO', browser: 'ALL' } }], //more configs here } 

I got the configuration above for parallel parallel parallel testing of e2e prototypes using this article: http://blog.yodersolutions.com/run-protractor-tests-in-parallel/

Also one for IE driver would be just as useful if you do not know how to configure Edge.

UPDATES:

From this link: https://msdn.microsoft.com/en-us/library/mt188085(v=vs.85).aspx ; under

Enabling WebDriver with Microsoft Edge:

Download the WebDriver language binding of your choice. C # and Java Selenium bindings are currently supported.

I do not use Java or C # , I use Javascript (Protractor) ; Does this mean that language binding for Javascript currenlty does NOT work for the Edge browser?

In other words, we currently cannot automate the Edge browser using Protractor (Javascript)?

Any help is greatly appreciated and I will update this post if I find anything related to setting up Protractor with Edge and have been browsing the web for several hours.

+6
source share
2 answers

It seems like Transformer people are now working on adding Edge support for Protractor. Take a look at the recently discovered issue on GitHub .

0
source

After some struggle, I got Protractor working with Microsoft Edge on my Windows 10 system.

Note. I use the Jasmine2 structure instead of Cucumber, but I believe that the steps below should work on Cucumber as well. I will try with Cucumber later and update here.

Here are the steps:

  • Get the version number of Microsoft EdgeHTML used on your system. In my case, it is 15.15063. Pay attention to the release number here. In this case, it is 15063.

    (Question: How do I get the version number of Microsoft EdgeHTML?
    A .: Edge browser> ...> Settings> About this app)

  • Download the correct version of MicrosoftWebDriver.exe from https://developer.microsoft.com/en-us/microsoft-edge/tools/webdriver/

    In my case, I downloaded Release 15063. If you get the wrong release, then you are likely to encounter an error similar to this error:

    "This version of MicrosoftWebDriver.exe is not compatible with the installed version of Windows 10.

  • put MicrosoftWebDriver.exe in the folder where the other drivers are located:

     C:\Users\yourname\AppData\Roaming\npm\node_modules\protractor\node_modules\webdriver-manager\selenium\ 
  • conf.js file. Essentially, this is what conf.js should:

     seleniumAddress: 'http://localhost:4444/wd/hub', capabilities: // or multiCapabilities: { 'browserName': "MicrosoftEdge" } 
  • run webdriver-manager as follows:

     C:\your\path>webdriver-manager start --edge C:\Users\yourname\AppData\Roaming\npm\node_modules\protractor\node_modules\webdriver-manager\selenium\MicrosoftWebDriver.exe 
  • You are configured to run Protractor tests in the Edge browser.

Good luck

0
source

All Articles