with protractor how to setup internet explorer configuration?

前端 未结 5 1622
执念已碎
执念已碎 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:34

    I was looking around this question for few hours, the best way seems to be:

    1) download webdriver-manager --ie update

    This should download the driver from the google.. selenium ... release folder and place it directly in the good place in your npm local repository.

    2) setup in config.js file of your tests: ...

    multiCapabilities: [
        //{
        //    browserName: 'chrome',
        //    version: 'ANY'
        //},
        //{
        //    browserName: 'firefox',
        //    version: 'ANY'
        //},
        {
            browserName: 'internet explorer',
            version: 'ANY'
        },
    ],
    // For some IE functions you may need to specify defaultTimeoutInterval
    

    ... 3) setup IE:

    follow this post http://jimevansmusic.blogspot.fr/2012/08/youre-doing-it-wrong-protected-mode-and.html

    PS: about the "protected mode" setup of IE, it's important to have the same setup for all zones. I prefer to have protected mode 'on' for all zone

    4) patch the registry

    as described here: http://heliumhq.com/docs/internet_explorer

    [HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Internet Explorer\MAIN\FeatureControl\FEATURE_BFCACHE] "iexplore.exe"=dword:00000000

    5) IE 11 update break the way the system work:

    My lastest issue was "the server did not provide any stack trace ...." this is due to an update of the 17th of Dec 2014. Uninstall it and then it's good.

    https://code.google.com/p/selenium/issues/detail?id=3390

    crazy path to make it running. It cannot be like this for a long run, please comment my post with your experiences/feedbacks.

    Richard

提交回复
热议问题