0

I'm trying to learn how to use HTMLUnit in order to test some website's JavaScripts elements.

I've tried doing some homework and using the HTMLUnit's How-To's but with no success. I get stuck when trying to run my program, I need to choose how to run it and it gives me a list of option which I never handled before. Please help me on this?

All, I get is a console window waiting for some input? Thats not what I was expecting to happen obviously.

enter image description here

2 Answers 2

1

Did you try adding @Test above the homePage() method?

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

Comments

0

I'd recommend using QUnit to test Javascript - that's what the jQuery team uses.

Comments

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.