dalekjs / dalek-driver-sauce

[unmaintained] Sauce Labs bindings for DalekJS
MIT License
4 stars 5 forks source link

Sauce labs driver is erring with { '0': undefined }. #10

Open pedrotanaka opened 9 years ago

pedrotanaka commented 9 years ago

The sauce labs driver is erring with { '0': undefined }.

Pedros-MacBook-Pro:dalek b-petana$ dalek -l 5 scenario4.js -b chrome -d sauce
Running tests
☁ [SYSTEM] dalek-internal-driver: Loading driver: "sauce"
Running Browser: undefined
☁ [WEBDRIVER] webdriver: 200 POST /wd/hub/session
☁ [WEBDRIVER] webdriver: {"status": 0, "sessionId": "4487374a61da48e4ba6ba916cc66ba0f", "value": {"rotatable": false, "browserConnectionEnabled": false, "acceptSslCerts": true, "cssSelectorsEnabled": true, "chrome": {"userDataDir": "/var/folders/bl/1800rz_j7blcqx8pthyrq59h0000gn/T/.org.chromium.Chromium.9ztwFa"}, "javascriptEnabled": true, "version": "38.0.2125.101", "webdriver.remote.sessionid": "4487374a61da48e4ba6ba916cc66ba0f", "databaseEnabled": false, "locationContextEnabled": true, "takesScreenshot": true, "platform": "Mac OS X", "browserName": "chrome", "mobileEmulationEnabled": false, "hasMetadata": true, "nativeEvents": true, "applicationCacheEnabled": false, "webStorageEnabled": true, "handlesAlerts": true, "takesHeapSnapshot": true}}
OS: OS X 10.9
☁ [WEBDRIVER] webdriver: 200 GET /wd/hub/session/4487374a61da48e4ba6ba916cc66ba0f
☁ [WEBDRIVER] webdriver: {"status": 0, "sessionId": "4487374a61da48e4ba6ba916cc66ba0f", "value": {"rotatable": false, "browserConnectionEnabled": false, "acceptSslCerts": true, "cssSelectorsEnabled": true, "chrome": {"userDataDir": "/var/folders/bl/1800rz_j7blcqx8pthyrq59h0000gn/T/.org.chromium.Chromium.9ztwFa"}, "javascriptEnabled": true, "version": "38.0.2125.101", "webdriver.remote.sessionid": "4487374a61da48e4ba6ba916cc66ba0f", "databaseEnabled": false, "locationContextEnabled": true, "takesScreenshot": true, "platform": "Mac OS X", "browserName": "chrome", "mobileEmulationEnabled": false, "hasMetadata": true, "nativeEvents": true, "applicationCacheEnabled": false, "webStorageEnabled": true, "handlesAlerts": true, "takesHeapSnapshot": true}}
Browser Version: 38.0.2125.101
{ '0': undefined }

Dalekfile.json:

{
    "browser": ["chrome"],
    "driver.sauce": {
        "user": "XX",
        "key": "XX"
    },
    "browsers": [{
        "chrome": {
            "platform": "OS X 10.9",
            "actAs": "chrome",
            "version": 38
        }
    }]
}
amitaibu commented 9 years ago

Seems it's happening when using the screenshot() command. Once it's commented out it works fine.

module.exports = {
  'Page title is correct': function (test) {
    test
    .open('http://google.com')
    .assert.title().is('Google', 'It has title')
    .screenshot('./screenshots/google.png', '#hplogo')
    .done();
  }
};
asciidisco commented 9 years ago

We´re going to rewrite the Sauce Labs adapter for the next version of Dalek, I´m taking this with me as an issue we need to take extra care of.