O Webdriver.io falha com o NoSessionIdError

Estou tentando fazer com que webdriver.io e Jasmine funcionem.

Segueo exemplo deles, meu script está emtest/specs/first/test2.js (de acordo com a configuração) e contém:

var webdriverio = require('webdriverio');


describe('my webdriverio tests', function() {

    var client = {};
    jasmine.DEFAULT_TIMEOUT_INTERVAL = 9999999;

    beforeEach(function() {
        client = webdriverio.remote({ desiredCapabilities: {browserName: 'firefox'} });
        client.init();
    });

    it('test it', function(done) {
        client
            .url("http://localhost:3000/")
            .waitForVisible("h2.btn.btn-primary")
            .click("h2.btn.btn-primary")
            .waitForVisible("h2.btn.btn-primary")
            .call(done);
    });

    afterEach(function(done) {
        client.end(done);
    });
});

Estou usando o wdio como executor de teste e configure-o usando a instalação interativa. Essa configuração é gerada automaticamente e é bem direta, então não vejo a necessidade de publicá-la.

Em outra janela do terminal, estou executando o selenium-server-andalone-2.47.1.jar com o Java 7. Eu tenho o Firefox instalado no meu computador (ele inicia quando o teste é executado) e meu computador está executando o OS 10.10. 5)

É o que acontece quando eu inicio o executor de teste:

$ wdio wdio.conf.js 


=======================================================================================
Selenium 2.0/webdriver protocol bindings implementation with helper commands in nodejs.
For a complete list of commands, visit http://webdriver.io/docs.html. 
=======================================================================================

[18:17:22]:  SET SESSION ID 46731149-79aa-412e-b9b5-3d32e75dbc8d
[18:17:22]:  RESULT      {"platform":"MAC","javascriptEnabled":true,"acceptSslCerts":true,"browserName":"firefox","rotatable":false,"locationContextEnabled":true,"webdriver.remote.sessionid":"46731149-79aa-412e-b9b5-3d32e75dbc8d","version":"40.0.3","databaseEnabled":true,"cssSelectorsEnabled":true,"handlesAlerts":true,"webStorageEnabled":true,"nativeEvents":false,"applicationCacheEnabled":true,"takesScreenshot":true}
NoSessionIdError: A session id is required for this command but wasn't found in the response payload 
    at waitForVisible("h2.btn.btn-primary") - test2.js:21:14 

/usr/local/lib/node_modules/webdriverio/node_modules/q/q.js:141
                throw e;
                      ^
NoSessionIdError: A session id is required for this command but wasn't found in the response payload



0 passing (3.90s)


$

Acho isso muito estranho e inexplicável, especialmente considerando que ele até imprime o ID da sessão.

Alguma ideia?