Hi, I don't understand your concern? Are you expecting that JWebUnit translate the label? In TestContext, setLocale is used for retrieving label in a ressource bundle. For example, check method assertKeyPresent(String key)
Please explain your problem. Regards, Julien --- karim gzouli <[EMAIL PROTECTED]> a écrit : > > Hi, > > I want to change the IJwebUnitDialog locale. So I > try to change it using IJwebUnitDialog > .setLocale(myLocale) but it doesn't work. > > This is the code that I'am especting : > > IJWebUnitDialog dialog = new > HTMLUnitDialog(); > TestContext testContext = new > TestContext(); > > testContext.setResourceBundleName(DEFAULT_BUNDLE_WEB); > testContext.setLocale(Locale.ENGLISH); > dialog.beginAt(new > URL(url),testContext ; > > After that, I test all the label using xpath for > exemple : <label for="test"> C'est un test</label] > ---> //[EMAIL PROTECTED]"test"] but JWebUnit return all > the label in Frensh and not in English. > > Thank you for your help. > > Karim. > > > _________________________________________________________________ > Microsoft vous recommande de mettre à jour Internet > Explorer. > http://specials.fr.msn.com/IE7P25> ------------------------------------------------------------------------- > This SF.net email is sponsored by: Microsoft > Defy all challenges. Microsoft(R) Visual Studio > 2008. > http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/> _______________________________________________ > JWebUnit-users mailing list > [email protected] > https://lists.sourceforge.net/lists/listinfo/jwebunit-users > _____________________________________________________________________________ Ne gardez plus qu'une seule adresse mail ! Copiez vos mails vers Yahoo! Mail http://mail.yahoo.fr ------------------------------------------------------------------------- This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2008. http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ _______________________________________________ JWebUnit-users mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/jwebunit-users
