-
Notifications
You must be signed in to change notification settings - Fork 68
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
Poltergeist timeout #6
Comments
Hi, Check that you have enough CPU, RAM & bandwidth on your machine, also check that you can open the page from another browser. Regards, |
Hello. Yes I can open the page on all the browsers in my local machine, and from my associate machine too. I just can't take the screenshot. |
Hey, Facing the same issue, any update on this ?? BTW I am getting this on my terminal
|
Same here:
ruby 2.0 It works fine with most of the other sites though. |
@AlreadyTalk @manoj2411 @arsenische I'll take a look at this today. Thank you! |
Yep same here. : ( It seems that timeout is hard to recover from. |
It's not the solution for the timeouts(I think it is a poltergeist/phantomJS problem) but it can helps to mitigate it. @vitalie: You implemented a timeout with sleep in the capture method. You can set it very high to avoid the timeouts but it's a pain to wait for working URLs I was thinking in replace the sleep with this code: def wait_until
require "timeout"
Timeout.timeout(Capybara.default_wait_time) do
sleep(0.1) until value = yield
value
end
end Code from: https://gist.github.com/jnicklas/d8da686061f0a59ffdf7 But instead of getting the value from a yield get it from the "visit url" or "page.driver.status_code" What do you think? |
Yep same here. : ( |
Any fix yet? |
@mrdougwright have you tried with latest version(0.1.0)? It upgrades poltergeist and allows to requires phantomjs to 2.x. If I'm not mistaken timeout problem was solved since this phantomjs version. Regards |
Yes, and still getting timeout. I may open separate issue as I'm now seeing the webshots misplaced when called repeatedly from an each block. |
Good morning,
I have a issue with the webshot.
I'm running the project in my local machine. I try to take a screenshot from my webpage, it gives my a time out from the poltergeist. If I try to take a the same page screenshot from the same page, but in some associate instance, doesn't give me the time out.
I look for the answer in other forums and nothing.
Can someone help me please?
I'm using Poltergeist, Capybara and PhantomJS
The text was updated successfully, but these errors were encountered: