Angularjs 量角器元件资源管理器不工作,repl不出现在windows上
我正在努力让elementExplorer工作 我正在尝试以下方法:Angularjs 量角器元件资源管理器不工作,repl不出现在windows上,angularjs,selenium,selenium-webdriver,protractor,Angularjs,Selenium,Selenium Webdriver,Protractor,我正在努力让elementExplorer工作 我正在尝试以下方法: node node_modules\protractor\bin\protractor .\protractor.dev.conf.js --baseUrl http://angularjs.org --elementExplorer > DEBUG - Running with --troubleshoot DEBUG - Protractor version: 1.7.0 > DEBUG - Your bas
node node_modules\protractor\bin\protractor .\protractor.dev.conf.js --baseUrl http://angularjs.org --elementExplorer
> DEBUG - Running with --troubleshoot DEBUG - Protractor version: 1.7.0
> DEBUG - Your base url for tests is http://angularjs.org Using the
> selenium server at http://localhost:4444/wd/hub DEBUG - WebDriver
> session successfully started with capabilities { caps_: { platform:
> 'XP',
> acceptSslCerts: true,
> javascriptEnabled: true,
> browserName: 'chrome',
> chrome: { userDataDir: 'C:\\Users\\me\\AppData\\Local\\Temp\\scoped_dir25488_18232' },
> rotatable: false,
> locationContextEnabled: true,
> mobileEmulationEnabled: false,
> 'webdriver.remote.sessionid': '06c7edae-15e9-4e9a-8293-91e2d5c4fe90',
> version: '42.0.2310.0',
> takesHeapSnapshot: true,
> cssSelectorsEnabled: true,
> databaseEnabled: false,
> handlesAlerts: true,
> browserConnectionEnabled: false,
> nativeEvents: true,
> webStorageEnabled: true,
> applicationCacheEnabled: false,
> takesScreenshot: true } } Starting debugger agent. Debugger listening on port 5858
使用以下配置
/// protractor.dev.conf.js
exports.config = {
// The address of a running selenium server.
seleniumAddress: 'http://localhost:4444/wd/hub',
baseUrl: 'http://localhost:54054/',
// Capabilities to be passed to the webdriver instance.
capabilities: {
'browserName': 'chrome',
'chromeOptions': {
'args': ['show-fps-counter=true'],
'binary' : 'C:\\Users\\me\\AppData\\Local\\Chromium\\Application\\chrome.exe'
}
},
specs: ['specs/acceptance/**/*.js'],
framework: 'mocha',
onPrepare: 'specs/bootstrap-specs.js',
mochaOpts: {
reporter: "spec",
debug : true,
timeout : 4000
}
};
它会按预期加载chromium,但不会重定向到,并且repl永远不会出现
有什么想法可能是错误的吗
注意:我可以很好地执行正常测试
谢谢
我添加了--Troubleshootball标志,并获得以下结果:
node node_modules\protractor\bin\protractor .\protractor.dev.conf.js --baseUrl http://angularjs.org --elementExplorer
> DEBUG - Running with --troubleshoot DEBUG - Protractor version: 1.7.0
> DEBUG - Your base url for tests is http://angularjs.org Using the
> selenium server at http://localhost:4444/wd/hub DEBUG - WebDriver
> session successfully started with capabilities { caps_: { platform:
> 'XP',
> acceptSslCerts: true,
> javascriptEnabled: true,
> browserName: 'chrome',
> chrome: { userDataDir: 'C:\\Users\\me\\AppData\\Local\\Temp\\scoped_dir25488_18232' },
> rotatable: false,
> locationContextEnabled: true,
> mobileEmulationEnabled: false,
> 'webdriver.remote.sessionid': '06c7edae-15e9-4e9a-8293-91e2d5c4fe90',
> version: '42.0.2310.0',
> takesHeapSnapshot: true,
> cssSelectorsEnabled: true,
> databaseEnabled: false,
> handlesAlerts: true,
> browserConnectionEnabled: false,
> nativeEvents: true,
> webStorageEnabled: true,
> applicationCacheEnabled: false,
> takesScreenshot: true } } Starting debugger agent. Debugger listening on port 5858
这可能与windows的问题有关。谢谢,我刚刚回滚到1.6.1版,它运行正常。