These are chat archives for webdriverio/grunt-webdriver

6th
Sep 2015
Tony Keith
@onewithhammer
Sep 06 2015 16:56
I spent several hours trying to fix this issue without any luck. Any suggestions. It seems something in grunt-webdriver changed.
I get the same error when running it locally now:
Tonys-MacBook-Pro:Tutorial tkeith$ grunt webdriver
Running "webdriver:ieexample" (webdriver) task
Failed loading configuration file:  /Users/tkeith/Testing/Tutorial/undefined
/Users/tkeith/Testing/Tutorial/node_modules/webdriverio/lib/utils/ConfigParser.js:65
        throw e;
              ^
Error: Cannot find module '/Users/tkeith/Testing/Tutorial/undefined'
    at Function.Module._resolveFilename (module.js:336:15)
    at Function.Module._load (module.js:278:25)
    at Module.require (module.js:365:17)
    at require (module.js:384:17)
    at ConfigParser.addConfigFile (/Users/tkeith/Testing/Tutorial/node_modules/webdriverio/lib/utils/ConfigParser.js:44:26)
    at Object.init (/Users/tkeith/Testing/Tutorial/node_modules/webdriverio/lib/launcher.js:10:18)
    at Object.<anonymous> (/Users/tkeith/Testing/Tutorial/node_modules/webdriverio/lib/cli.js:277:10)
    at Module._compile (module.js:460:26)
    at Object.Module._extensions..js (module.js:478:10)
    at Module.load (module.js:355:32)
Christian Bromann
@christian-bromann
Sep 06 2015 17:59
You need to set the property configFile in your test option:
Failed loading configuration file: /Users/tkeith/Testing/Tutorial/undefined
see the example:
grunt.initConfig({
  webdriver: {
    test: {
        configFile: './test/wdio.conf.js'
    }
  },
  // ...
})
Tony Keith
@onewithhammer
Sep 06 2015 23:24
so grunt-driver now uses wdio as the runner???
Christian Bromann
@christian-bromann
Sep 06 2015 23:25
yes
it calls the wdio command for you and passes certain arguments to it if you want
Tony Keith
@onewithhammer
Sep 06 2015 23:26
did this change with latest release?
Christian Bromann
@christian-bromann
Sep 06 2015 23:26
yes
Tony Keith
@onewithhammer
Sep 06 2015 23:26
oh ok
thanks