启动量角器时遇到问题。
下面是我正在使用的代码:
conf.js代码如下
// An example configuration file.
exports.config = {
// The address of a running selenium server.
seleniumAddress: 'http://localhost:4444/wd/hub',
// Capabilities to be passed to the webdriver instance.
capabilities: {
// 'browserName': 'chrome'
'browserName': 'internet explorer'
},
// Spec patterns are relative to the current working directly when
// protractor is called.
specs: ['example_spec.js'],
// Options to be passed to Jasmine-node.
allScriptsTimeout: 500000,
jasmineNodeOpts: {
onComplete: null,
isVerbose: true,
showColors: true,
includeStackTrace: true,
defaultTimeoutInterval: 1000000
}
};
sample_class.js文件,代码如下:
describe('angularjs homepage title check', function () {
it('should have a title', function () {
console.log('Step 1');
browser.get('http://google.com');
expect(browser.getTitle()).toEqual('My Todolist Page');
});
以下是我使用的命令:
- 安装量角器和节点js
- webdriver-manager 更新 --ie
- webdriver-manager 启动
我正在 Selenium 中寻找可行的解决方案,例如:
InternetExplorerOptions() { IntroduceInstabilityByIgnoringProtectedModeSettings = true} in selenium.
谢谢