How to Handle internationalization In Selenium By FirefoxProfile?

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");
   }
}
Avatar for Softwaretestingo Editorial Board

I love open-source technologies and am very passionate about software development. I like to share my knowledge with others, especially on technology that's why I have given all the examples as simple as possible to understand for beginners. All the code posted on my blog is developed, compiled, and tested in my development environment. If you find any mistakes or bugs, Please drop an email to softwaretestingo.com@gmail.com, or You can join me on Linkedin.

Leave a Comment