dalekjs / dalek-driver-sauce

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

Tests bail with "ERROR: TypeError: Cannot read property '0' of null" #2

Open smtlaissezfaire opened 10 years ago

smtlaissezfaire commented 10 years ago

I can't get the tests running. Here's what I see:

Scotts-MacBook-Air-5:web(master) smtlaissezfaire$ dalek -l 5 dalek/*_test.js -d sauce -b chrome Running tests ☁ [SYSTEM] dalek-internal-driver: Loading driver: "sauce"

ERROR: TypeError: Cannot read property '0' of null

Here's a gist of my config:

https://gist.github.com/smtlaissezfaire/6824adfab9f905ec9938

(I've changed my username + api key, obvious)

zz85 commented 10 years ago

I encountered this error and found the fix for this. basically you will need to add this to your Dalekfile.json

"browsers": [{
        "chrome": {
            "platform": "OS X 10.6",
            "actAs": "chrome",
            "version": 27
        },
        "chromeWin": {
            "platform": "Windows 7",
            "actAs": "chrome",
            "version": 27
        },
        "chromeLinux": {
            "platform": "Linux",
            "actAs": "chrome",
            "version": 26
        }
    }]

some points

asciidisco commented 10 years ago

@zz85 Thanks for helping out, I would definitely appreciate a PR :+1: