Tôi đang sử dụng thước đo 1.3.1 và chạy iedriverserver.exe 2.43.0.0 với cài đặt IE11 (cửa sổ). Đây là spec của tôi:với thước đo cách thiết lập cấu hình internet explorer?
describe('quick test IE driver', function() {
it('should go to ng homepage', function() {
browser.driver.get('https://angularjs.org/');
var title =element(by.css('h1')).getText();
expect(title).toBe('HTML enhanced for web apps!');
});
});
Và đây là protractor.conf.js tôi:
exports.config = {
// The address of a running selenium server.
//seleniumAddress: 'http://localhost:4444/wd/hub',
capabilities: {
'browserName': 'internet explorer',
'platform': 'ANY',
'version': '11'
},
// Spec patterns are relative to the current working directly when
// protractor is called.
specs: ['main.spec.js'],
// Options to be passed to Jasmine-node.
jasmineNodeOpts: {
showColors: true,
defaultTimeoutInterval: 30000,
isVerbose:true,
includeStackTrace:true
}
};
nhận được lỗi này mặc dù, bất kỳ ý tưởng cho một giải pháp:
UnknownError: The path to the driver executable must be set by the webdriver.ie.driver system property;
[Theo nguyên tắc cấu hình thước đo góc, giá trị cấu hình "seleniumArgs" không được chấp nhận.] (Https://github.com/angular/protractor/blob/master/lib/config.ts#L45) –