HtmlUnit for PHP


I read on the google site about HtmlUnit that's written in Java. From my limited understanding of HtmlUnit it's used as a testing unit to fill out forms, submit forms even when these pages are created with Javascript such as jQuery or Prototype.

1) I'm wondering if there is something similar written for PHP. If not then I was thinking of learning Java.

2) What I'd like to do is retrieve the HTML snapshots when logging in and then submit forms. Can HtmlUnit do this? I was looking at curl for PHP but it doesn't seem to handle Javascript as well or am I wrong?

3) It seems like the HmtlUnit will be able to actually click buttons too so I can see how this can be useful for testing and also the submission of forms. I suppose there is nothing written, perhaps, in PHP and Javascript to click on buttons and similar level of functionality of the HtmlUnit, is there?

Thank you,
Victor KimuraSEO, Web DeveloperAsked:
Who is Participating?

[Product update] Infrastructure Analysis Tool is now available with Business Accounts.Learn More

I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

Try looking into Selenium. Easily the best tool in case you are not a java person or donot want to spend time with fiddling with code. There is a Selenium IDE plugin for firefox, that makes things even easier. You can record you test cases and play then over and over again.

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
Victor KimuraSEO, Web DeveloperAuthor Commented:
Hi a_b,

Selenium looks like an excellent program/IDE. I was just browsing the site and notice Selenium works with Ruby. I'd like to test forms based on retrieving data from MySQL. Do you know if I can get Selenium to work with MySQL and PHP. There is some reference to Java as well.

Thank you,
Have a look at this -

You might have to have a look at PHPUnit
Victor KimuraSEO, Web DeveloperAuthor Commented:
Thank you.
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today

From novice to tech pro — start learning today.