Open jessegavin opened 7 years ago
This PR could definitely help folks with single page apps / dynamic UIs as well. (If they're willing to add window.callPhantom()
in their code). I think issue #62 may have benefitted from a feature like this.
@vbauer Any thoughts on this Pull Request?
@jessegavin Sorry, I'm on a business trip now. I would be able to take a look a little bit later..
@vbauer , I really need this in my project, so if I can anyway throw in a vote for this, please consider this my vote:-)
@jessegavin Could you please resolve conflicts (and I will accept it)?
I just came back to this thread, I'll resolve conflicts now.
This pull request implements a solution to issue #11 .
I am not sure whether
captureOnCallback
is the best name, butcallback
was already taken.If
captureOnCallback
istrue
, we use the onCallback callback to initiate screen capture (rather than checking if the document is ready).I tested this feature using both phantom and slimer engines and it seems to work great.
I used the following url as the test page: https://presentation-ngwjsmdjlf.now.sh
I am happy to make changes if needed.