Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
443 views
in Technique[技术] by (71.8m points)

Protractor Edge chromium options not applied

I use Protractor + Jasmine + UIAutomation to test web and desktop applications. I need to run my tests in Edge Chromium browser (version 88.0.705.53). I use selenium-server-standalone-3.141.59, and msedgedriver.exe version 88.0.705.53, the same like Edge browser. Here is my protractor config.js:

 capabilities: {
    'browserName': 'MicrosoftEdge',
    'platform': 'windows',
    'maxInstances': 1,
    'nativeEvents': false,
    'UseChromium': true,
    edgeOptions: {
      args: ['--no-sandbox', 'lang=en-EN', '--disable-gpu'],
      prefs: {
        download: {
          'prompt_for_download': true,
          'directory_upgrade': true,
          'default_directory': 'C:\DownloadedFiles'
        }
      }
    },
  },

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

The problem is when I run my tests, download options are not applied and the browser doesn't prompt for download and the default directory is not changed. Here is my standalone server: enter image description here

What is wrong with my settings and what should I change? Thank you for your answers in advance.

question from:https://stackoverflow.com/questions/65936137/protractor-edge-chromium-options-not-applied

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome To Ask or Share your Answers For Others

1 Answer

0 votes
by (71.8m points)
Waitting for answers

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Click Here to Ask a Question

...