I am attempting to login to this site which operates on wordpress using Jwebunit.

webPage.setBaseUrl("http://www.mywebsite.com");
webPage.beginAt("/wp-login.php");

webPage.setTextField("log", "myusername");
webPage.setTextField("pwd", "mypassword");
webPage.clickButton("wp-submit");

The above mentioned doesn't throw any errors, however the page doesn't get posted. Basically consider using a wrong password, it'll toss the error, however when all values are correct, the submit does not go near the brand new page.

Any idea why this can be happening?