with protractor how to setup internet explorer configuration?

前端 未结 5 1655
执念已碎
执念已碎 2021-01-04 13:36

I am using protractor 1.3.1 and running iedriverserver.exe 2.43.0.0 with IE11 installed (windows). This is my spec:

describe(\'quick test IE driver\', functi         


        
5条回答
  •  情歌与酒
    2021-01-04 14:25

    Update web manager for IE

    First step is to update the ie webdriver using webdriver manager.Open command prompt and run the command given below

    webdriver-manager update --ie
    

    Go to npm location In this step move to the NPM_LOCATION(folder where npm is installed at your system. Move to the following path "NPM_LOCATION\node_modules\protractor\selenium" At this location check that IEDriverServer.exe is present or not.

    Change for IE in conf.js

    // conf.js exports.config = {   seleniumAddress: 'http://localhost:4444/wd/hub',   specs: ['specs.js'],   capabilities: {
        'browserName': 'internet explorer' // conf for internet explorer     } }
    
    
    // spec.js describe('Protractor Demo App', function() {   it('should have a title', function() {
        browser.get('http://juliemr.github.io/protractor-demo/');
        expect(browser.getTitle()).toEqual('Super Calculator');   }); });
    

    Now run protractor conf.js

    Note: Make sure you restart server by -->webdriver-manager start

    taken from: http://protractorsupport.blogspot.com/2015/05/use-protractor-with-internet-explorer.html

提交回复
热议问题