Search code examples
phphtmlunit

htmlunit for php or equivalent


I am writing a spider script,and I need the spider to get content generated by javascript,I heard htmlunit will execute javascript.My script is php,how do I get work with htmlunit? Is there a php equivalent?


Solution

  • This answer says no. I'm inclined to think that's still true. That answer says that you PHPUnit with Selenium RC may work.

    You may also be able to use SimpleTest.

    The other option would be to hand the page response over to a command-line call to Java to do the dirty work, using htmlunit.