Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
pedrotanaka opened this issue Dec 17, 2014 · 2 comments
Open

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

pedrotanaka opened this issue Dec 17, 2014 · 2 comments
Assignees
Labels

Comments

@pedrotanaka
Copy link

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
Copy link

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
Copy link
Member

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants