I am on ubuntu 14.04. This is my code:

var webdriverio = require('webdriverio');

var options = {
    desiredCapabilities: {
        browserName: 'firefox'
    }
}

webdriverio
    .remote(options)
    .init()
    .url('http://www.google.com')
    .title(function(err, res) {
        console.log(res.value)
    })
    .end();

When the browser window pops up nothing happens. No page is loaded and the url bar is blank. There is no error either. Does anyone know what im doing wrong?

  • This looks very much like the lesson learnd here webdriver.io/guide.html do you stick to the steps described there? – Matthias Oct 11 '14 at 22:27
  • Yes, that was the guide that i used. youll notice that my code is the same as theirs except that im using firefox. Chrome does not work because i dont have the chrome driver. – dopatraman Oct 12 '14 at 1:44
  • Sorry i cant follow - Their capabilities indicate firefox usage. – Matthias Oct 12 '14 at 5:42
  • That's exactly what's puzzling to me. Maybe it has to do with the fact that I'm using Ubuntu? – dopatraman Oct 12 '14 at 14:09

Yes, there is a problem with firefox and the old selenium standalone version (42.2 I think). Please download the new version from SeleniumHQ site. That should work. Sorry someone already opened a PR for that and I merged but didn't deployed it yet.

Your Answer

 

By clicking "Post Your Answer", you acknowledge that you have read our updated terms of service, privacy policy and cookie policy, and that your continued use of the website is subject to these policies.

Not the answer you're looking for? Browse other questions tagged or ask your own question.