javascript - Can't start selenium-webdriver on Karma suite -
can't start selenium-webdriver throught karma test suite. have try phantomjs, firefox, chrome... , nothing.
i'm working on node@v0.12.17.
this karma.conf.js:
module.exports = function (config) { config.set({ basepath: '', frameworks: ['browserify', 'jasmine'], files: [ 'scrollmanagerspec.js' ], exclude: [ ], preprocessors: { 'scrollmanagerspec.js': ['browserify'] }, browserify: { debug: true }, reporters: ['spec'], port: 9876, colors: true, loglevel: config.log_info, autowatch: true, browsers: [ 'chrome'], singlerun: true, concurrency: infinity }) }
and spec:
var webdriver = require('selenium-webdriver');
when karma start following error:
05 11 2016 17:10:14.355:info [framework.browserify]: bundle built 05 11 2016 17:10:14.377:info [karma]: karma v1.3.0 server started @ http://localhost:9876/ 05 11 2016 17:10:14.378:info [launcher]: launching browser chrome unlimited concurrency 05 11 2016 17:10:14.383:info [launcher]: starting browser chrome 05 11 2016 17:10:15.750:info [chrome 52.0.2743 (linux 0.0.0)]: connected on socket /#wgke-jh8ijn40wwtaaaa id 81166649 chrome 52.0.2743 (linux 0.0.0) error uncaught typeerror: cannot read property 'split' of undefined @ /tmp/node_modules/selenium- webdriver/node_modules/tmp/lib/tmp.js:284:0 <- /tmp/ac81dc30945845a8ed368199573da3f2.browserify:22517 chrome 52.0.2743 (linux 0.0.0): executed 0 of 0 error (0.412 secs / 0 secs)
Comments
Post a Comment