angularjs - Protractor : Unexpected error launching Internet Explorer. Pro tected Mode settings are not the same for all zones -


i facing issue while launching protractor code.

below code using:

conf.js below code

// example configuration file.  exports.config = { // address of running selenium server.  seleniumaddress: 'http://localhost:4444/wd/hub', // capabilities passed webdriver instance.  capabilities: {    // 'browsername': 'chrome'     'browsername': 'internet explorer' },  // spec patterns relative current working directly when  // protractor called.  specs: ['example_spec.js'],  // options passed jasmine-node.    allscriptstimeout: 500000, jasminenodeopts: {     oncomplete: null,     isverbose: true,     showcolors: true,     includestacktrace: true,     defaulttimeoutinterval: 1000000 } }; 

sample_class.js file below code:

 describe('angularjs homepage title check', function () {         it('should have title', function () {             console.log('step 1');             browser.get('http://google.com');             expect(browser.gettitle()).toequal('my todolist page');         }); 

and there command used launch

  1. installed protractor , node js
  2. webdriver-manager update --ie
  3. webdriver-manager start

please don't suggest me change browser setting in ie because disabled. let me know if other solution new

internetexploreroptions() { introduceinstabilitybyignoringprotectedmodesettings = true} in selenium. 

thanks

here answer question:

when work selenium 3.4.0, iedriverserver 3.4.0 ie(v 10/11), may consider configuring couple of properties ie work follows:

along setting,

internetexploreroptions() { introduceinstabilitybyignoringprotectedmodesettings = true} 

consider following:

  1. protected mode settings: on ie 7 or higher on windows vista or windows 7, must set protected mode settings each zone same value. value can on or off, long same every zone. set protected mode settings, choose "internet options..." tools menu, , click on security tab. each zone, there check box @ bottom of tab labeled "enable protected mode".
  2. zoom level: set zoom level 100% ie work properly.
  3. add following internetexploreroptions():

    { ignoreprotectedmodesettings = true} { nativeevents = true} { ignorezoomsetting = true} { requirewindowfocus = true} { introduce_flakiness_by_ignoring_security_domains = true} 
  4. incase of ie11: additionally have consider registry entries documented here.

let me know if answers question.


Comments

Popular posts from this blog

python - Selenium remoteWebDriver (& SauceLabs) Firefox moseMoveTo action exception -

html - How to custom Bootstrap grid height? -

transpose - Maple isnt executing function but prints function term -