Closed jtompkins closed 10 years ago
Edit:
I see from one of the examples that I need to add resolve and reject as arguments to the page.run call. Doing this fixes the error, but the process does not terminate and runs forever. Still not sure what's happening.
Edit 2: Disposing of the phantomjs process properly terminates the program. Sorry for the confusion!
No problem. I'm glad that the docs and examples could help you. :grinning:
I have a script to capture a webpage using phridge:
Unfortunately, the promise retuned by page.run seems to finish before the render method finishes executing, and I get the following error:
As you can see, I haven't called resolve twice, at least as far as I can tell. Can you give me a clue about what I'm doing wrong?