From: Gael H. <gae...@ho...> - 2005-06-08 08:58:53
|
Hi Marc, >- to "java.lang.IllegalArgumentException": >which version of htmlunit do you use? > I use htmlunit 1.6 , I downloaded it on the website last month. I'll try the lastest version from CVS. >- to "Ouvrir session" > >"Ouvrir session" is not the same string as "Ouvrir session". When the >html document is read, the entity gets resolved and replaced with the right >character. You can try to use the unicode code of in your string. >The other solution that I would recommend is to get the submit button by >name (or id, but there is no id on this page by yahoo): first your code >will work on version of Yahoo in other languages, and second, it's less >likely to change (marketing people by Yahoo may choose tomorow that "Ouvrir >ma session" is better for the user ;-)). > thank you, it works :) Now i'm able to fill this form but the javascript is down because of the exception and so the form can't be validated. |