Can't read from phantomjs. #11635

Closed
korotovsky opened this Issue Sep 19, 2013 · 3 comments

Projects

None yet

2 participants

@korotovsky

I'm running latest phantomjs dist with webdriver extension, and my tests don't work.

I'm trying to debug via console with curl:

curl -XPOST -d "{"url":"http://host.local/foo/bar"}" 127.0.0.1:4444/wd/hub/session/url

When I send the request to phantomjs it is being proceeded but doesn't answer.

In PhantomJs logs i see http://paste.ubuntu.com/6129254/ and that's all. Can anybody help me?

@adamdunkley

I wonder if this is actually to do with ghostdriver - https://github.com/detro/ghostdriver - (specifically version 1.0.4). I experience this problem with version 1.0.4 and when I manually regress to ghostdriver version 1.0.3 the problem goes away (both PhantomJS 1.9.1 and 1.9.2).

Haven't got anything useful to provide on top of what you've shown yet, but I will have a little dig over the next hour or so to see if I can get it working or have a proper bug report I can put in to the ghostdriver repo's issues (I think we should close the issue here). Can't really provide a "test" as it seems to simply be a matter of the driver not responding.

(Also: Cheeky ping to @detro incase he doesn't receive notifications for issues on this repo)

@adamdunkley

Looking in to this further it seems that it's actually to do with Selenium's new WireProtocol spec, which ghostdriver was updated to support (detro/ghostdriver@60bf3c9). I am using Mink Selenium2 Driver - https://github.com/Behat/MinkSelenium2Driver - which might not have been updated to support the new spec (a cursory glance down commits over the past few months and I can't tell). Will update again soon.

@adamdunkley

Been fixed in underlying PHP WebDriver (instaclick/php-webdriver#34); Mink Selenium2 Driver needs to update its dependency. @korotovsky I recommend looking at your Selenium bindings and making sure they've been updated within the last few months.

@korotovsky korotovsky closed this Oct 6, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment