From: Marc G. <mgu...@ya...> - 2005-06-08 08:18:07
|
Salut Gael, - to "java.lang.IllegalArgumentException": which version of htmlunit do you use? - 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 ;-)). Marc. |