dalekjs / dalek-browser-chrome

[unmaintained] Chrome Browser bindings for DalekJS
MIT License
15 stars 9 forks source link

Issue in chrome driver #3

Open DeLaGuardo opened 11 years ago

DeLaGuardo commented 11 years ago

When test started with flag -b chrome new chrome tab flashing for 1 second and close.

In console:

Running tests
Running Browser: Google Chrome
>> ERROR: TypeError: Cannot call method 'fin' of undefined

In chromedriver.log:

[0924/142020:INFO:chromedriver_server.cc(76)] Handling request: /session {}
[0924/142020:INFO:chromedriver_server.cc(81)] Done handling request: 200 {"sessionId":"","status":13,"value":{"message":"unknown error: cannot find dict 'desiredCapabilities'\n  (Driver info: chromedriver=0.7,platform=Mac OS X 10.9.0 x86_64)"}}

Investigation gave me reference to chromium bug

asciidisco commented 11 years ago

I updated & released the driver this morning. Could you please retest with the latest version 0.0.4?

If the error is still there, could you please give me an update which OS & which OS Version you are using. Thanks.

DeLaGuardo commented 11 years ago

Bug repeated, chrome still flashing and closing. In console:

> dalek test/first.coffee -b chrome
Running tests
Running Browser: Google Chrome
OS: Mac OS X 10.9.0 x86_64
Browser Version:

RUNNING TEST - "Page title is correct"
▶ OPEN http://jetradar.com
✘ TITLE
0 EXPECTED: Search and compare flights on JetRadar. We'll help you find best airfares
0 FOUND: [object Object]
0 MESSAGE: It has title
▶ TYPE #search_origin_name
▶ WAIT 10000 ms
> dalek -v
DalekJS CLI Tools Version: 0.0.2
DalekJS  local install: 0.0.2

My package.json

{
  "name": "myapp",
  "description": "Tests for myapp",
  "version": "0.0.1",
  "devDependencies": {
    "dalekjs": "latest",
    "dalek-browser-chrome": "latest",
    "dalek-reporter-html": "latest"
  }
}
asciidisco commented 11 years ago

Okay. As long as there is no update for the chromedriver binary, this issue will exist. When the next chromedriver is out & the dalek browser plugin is updated, I come back to you for verifying again.

kvervo commented 11 years ago

Hi @asciidisco!

The issue still persists.

Running tests
☁ [SYSTEM] dalek-internal-driver: Loading driver: "native"
☁ [SYSTEM] dalek-browser-chrome: Started ChromeDriver
Running Browser: Google Chrome
☁ [WEBDRIVER] webdriver: 200 POST /wd/hub/session
☁ [WEBDRIVER] webdriver: {"sessionId":"948a1f7addd94fe8ff4e08111a574676","status":13,"value":{"message":"unknown error: Chrome failed to start: was killed\n  (Driver info: chromedriver=2.3,platform=Mac OS X 10.9.0 x86_64)"}}
☁ [WEBDRIVER] webdriver: 200 POST /wd/hub/session/948a1f7addd94fe8ff4e08111a574676/window/current/size
☁ [WEBDRIVER] webdriver: {"sessionId":"","status":6,"value":{"message":"no such session\n  (Driver info: chromedriver=2.3,platform=Mac OS X 10.9.0 x86_64)"}}
☁ [WEBDRIVER] webdriver: 200 GET /wd/hub/status
☁ [WEBDRIVER] webdriver: {"sessionId":"","status":0,"value":{"build":{"version":"alpha"},"os":{"arch":"x86_64","name":"Mac OS X","version":"10.9.0"}}}
OS: Mac OS X 10.9.0 x86_64
☁ [WEBDRIVER] webdriver: 200 GET /wd/hub/session/948a1f7addd94fe8ff4e08111a574676
☁ [WEBDRIVER] webdriver: {"sessionId":"","status":6,"value":{"message":"no such session\n  (Driver info: chromedriver=2.3,platform=Mac OS X 10.9.0 x86_64)"}}
Browser Version: 

RUNNING TEST - "Page title is correct"
☁ [WEBDRIVER] webdriver: 200 POST /wd/hub/session/948a1f7addd94fe8ff4e08111a574676/url
☁ [WEBDRIVER] webdriver: {"sessionId":"","status":6,"value":{"message":"no such session\n  (Driver info: chromedriver=2.3,platform=Mac OS X 10.9.0 x86_64)"}}
▶ OPEN http://google.com
☁ [WEBDRIVER] webdriver: 200 GET /wd/hub/session/948a1f7addd94fe8ff4e08111a574676/title
☁ [WEBDRIVER] webdriver: {"sessionId":"","status":6,"value":{"message":"no such session\n  (Driver info: chromedriver=2.3,platform=Mac OS X 10.9.0 x86_64)"}}
✘ TITLE
0 EXPECTED: Google
0 FOUND: [object Object]
0 MESSAGE: It has title
connect.multipart() will be removed in connect 3.0
visit https://github.com/senchalabs/connect/wiki/Connect-3.0 for alternatives
connect.limit() will be removed in connect 3.0
✘ TEST - "Page title is correct" FAILED
☁ [SYSTEM] dalek-browser-chrome: Shutting down ChromeDriver

Is this an issue of the driver or DalekJS ?

aral commented 10 years ago

I just ran into this also. Is anyone able to use the Chrome driver?

Update: Actually, scratch that, I just updated Chrome to the latest (35.0.x) and it’s working now. I was at some woefully outdated version as I don’t use it often (28.x).