How to Handle Internationalization in Selenium By FirefoxProfile?
package com.selenium.mix;
import org.openqa.selenium.WebDriver;
import org.openqa.selenium.firefox.FirefoxDriver;
import org.openqa.selenium.firefox.FirefoxProfile;
public class internationalizationEx
{
public static void main(String[] args)
{
FirefoxProfile profile = new FirefoxProfile();
profile.setPreference("intl.accept_languages","fr");
WebDriver driver = new FirefoxDriver(profile);
driver.get("http://google.co.in");
}
}