Protractor Test Cases Not Working in Internet Explorer 11

后端 未结 2 1309
走了就别回头了
走了就别回头了 2021-01-28 16:28

Protractor Test Cases Not Working in Internet Explorer 11 on Windows 10 Enterprise

Protractor.conf.js has below configuration.

seleniumAddress: \'http://localho         


        
相关标签:
2条回答
  • 2021-01-28 16:57

    Here is what solved my problem as per suggestion provided on the link. I have opened 'Registry Editor', did go to below path.

    Computer\HKEY_LOCAL_MACHINE\SOFTWARE\WOW6432Node\Microsoft\Internet Explorer\Main\FeatureControl\

    And then created a new feature there by right clicking -> FEATURE_BECACHE -> then right click this feature and then create New->DWORD (32-Bit Value) and then rename the created DWORD as -> 'iexplore.exe'

    Check the link below for the Registry Setting Being Made.

    enter image description here

    0 讨论(0)
  • 2021-01-28 17:22
    1. package.json will have script like below. (You have to add it under scripts tag).
      "webdriver-nodemodules-update-all-drivers": "cd .\node_modules\protractor\node_modules\webdriver-manager\bin & webdriver-manager update --standalone & webdriver-manager update --versions.gecko=v0.22.0 & webdriver-manager update --ie"
    2. Make sure protractor.conf.js has localSeleniumStandaloneOpts & multiCapabilities Code Image. Do like this. image code snipped (Unformatted) is below (Copy below code and format it in your ide- pls refer code image here and configure like that.) protractor.conf and format code.

      //directConnect: true, localSeleniumStandaloneOpts : { //jvmArgs : ["-Dwebdriver.ie.driver="] // e.g: "node_modules/protractor/node_modules/webdriver-manager/selenium/IEDriverServer_x64_X.XX.X.exe" jvmArgs : ["-Dwebdriver.ie.driver=node_modules//protractor//node_modules//webdriver-manager//selenium//IEDriverServer3.14.0.exe"] // e.g: "node_modules/protractor/node_modules/webdriver-manager/selenium/IEDriverServer_x64_X.XX.X.exe" }, 'autoStartStopServer': true, multiCapabilities:[ { 'browserName': 'chrome', chromeOptions: { // args: ['--headless', '--disable-gpu', '--window-size=1920,1080'] }, acceptInsecureCerts: true, shardTestFiles: true }, { 'browserName': 'firefox', 'marionette': true, firefoxOptions: { // args: ['--headless'] }, 'moz:firefoxOptions': { args: [ '--headless' ] }, directConnect: false, }, { 'browserName': 'internet explorer', 'platform': 'ANY', 'version': '11' } ],

    3. Then do run 3 commands - 'npm install', 'npm run webdriver-nodemodules-update-all-drivers' and then 'ng e2e' to run the test cases on (chrome/firefox/internet explorer) browsers. Note that webdriver-nodemodules-update-all-drivers command will only run if you have followed step 1.

    0 讨论(0)
提交回复
热议问题