Re: [NewB] htmlUnit and submit button don't work...

2006-03-21 Thread ZedroS Schwart
Thanks a lot for your answers, you were right. It was most helpful !

Re: [NewB] htmlUnit and submit button don't work...

2006-03-21 Thread Kent Tong
ZedroS Schwart gmail.com> writes: > The interesting part of my Tests.java is, I think : > URL url = new URL("Path"); > page = (HtmlPage) client.getPage(url); > HtmlForm form = page.getFormByName("inscriptionForm"); > HtmlTextInput login = (HtmlTextInput) form.getIn

Re: [NewB] htmlUnit and submit button don't work...

2006-03-20 Thread Mike Snare
You need to set the id attribute on the submit button. You appear to be searching for it by the name "OK", so use that. -Mike On 3/20/06, ZedroS Schwart <[EMAIL PROTECTED]> wrote: > Hi all > > I'm trying to use htmlunit to test my Tapestry app. > > Until a few time ago, it was going well : I cou

[NewB] htmlUnit and submit button don't work...

2006-03-20 Thread ZedroS Schwart
Hi all I'm trying to use htmlunit to test my Tapestry app. Until a few time ago, it was going well : I could access the page, assert some values and so on. Then I wanted to submit some values... I ge't the error : com.gargoylesoftware.htmlunit.ElementNotFoundException: elementName=[input] attribu