0

I would like to write my own web test engine that will request (get/post) my wsgi application and i would like my client to interpret the return page that contains some javascript code.

Basically it is how to use a PyV8 to make a headless browser.

Thx

1 Answer 1

2

Unless you really want to do this project yourself, have you considered using PhantomJS (home page)? It's a headless WebKit with support for scripting in Javascript, and has both C++ and Python implementations (though the Python version seems slightly less well-supported than the C++ version, and there was some chatter on the mailing list about discontinuing Python development).

Sign up to request clarification or add additional context in comments.

3 Comments

Thanks, just discovered it yesterday, it is my new favorite thing of all time :).
Yes, it sure beats curl :-). Usually I use something like Nokogiri to do these sorts of things, but PhantomJS is very nice.
PhantomJS sounds very interesting. But I am still interestng how to assemble together a javascript engine and dom

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.