fix IE detection in protractor

This commit is contained in:
Roman Hotsiy 2016-08-29 01:05:34 +03:00
parent 0d2c557ebe
commit 50f65f7cfd
No known key found for this signature in database
GPG Key ID: 5CB7B3ACABA57CB0

View File

@ -13,9 +13,8 @@ let config = {
// load APIs.guru list // load APIs.guru list
return loadJson('https://api.apis.guru/v2/list.json').then((list) => { return loadJson('https://api.apis.guru/v2/list.json').then((list) => {
global.apisGuruList = list; global.apisGuruList = list;
return browser.getCapabilities().then(function (cap) { return browser.getCapabilities().then(function (caps) {
browser.isIE = cap.browserName === 'internet explorer' browser.isIE = caps.get('browserName') === 'internet explorer';
|| (cap.caps_ && cap.caps_.browserName === 'internet explorer')
}); });
}); });
}, },