我只是试着在internet上运行包含在量角器中的示例测试,但没有取得很大进展:
// An example configuration file.
exports.config = {
directConnect: true,
// Capabilities to be passed to the webdriver instance.
capabilities: {
'browserName': 'chrome'
},
// Framework to use. Jasmine is recommended.
framework: 'jasmine',
// Spec patterns are relative to the current working directory when
// protractor is called.
specs: ['example_spec.js'],
// Options to be passed to Jasmine.
jasmineNodeOpts: {
defaultTimeoutInterval: 30000
}
};
我尝试过将浏览器的名称更改为“internet”和“version”:11,并且我已经将directConnect注释掉了(因为它是在抱怨这一点)。
我得到的错误是..。
WebDriverError:驱动程序可执行文件的路径必须由webdriver.ie.driver系统属性设置;有关更多信息,请参见https://github.com/SeleniumH Q/selenium/wiki/InternetExplorerDriver。最新版本可从http://selenium-release.storage.googleapis.com/index.html下载。
我下载了最新的IE驱动程序放在这里..。
C:\Users\darrenp\AppData\Roaming\npm\node_modules\protractor\selenium
仍然没有joy:
有人能告诉我,是否真的可以在IE中进行量角器测试,还是我只是在浪费时间?
我知道你会问我为什么要问?简单的回答是,我必须这样做,我的客户端使用IE,只有IE和我需要确保我的应用程序在IE中是好的,而不是像世界上其他人正在使用的一样。)
发布于 2016-05-26 12:53:45
1)下载IEDriverServer.exe 2)将其放在C:\Windows\System32 32中
exports.config = {
'autoStartStopServer': true,
capabilities: {
'browserName': 'internet explorer'
},
framework: 'jasmine',
specs: ['example_spec.js'],
jasmineNodeOpts: {
defaultTimeoutInterval: 30000
}
};3)打开单击选项
4)在安全选项卡>禁用所有区域的保护模式
5)导航到隐私选项卡TurnOff PopUp Blocker
6)导航到高级选项卡





https://stackoverflow.com/questions/37456099
复制相似问题