All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.sunnydsouza.testframework.archive.Localization Maven / Gradle / Ivy

Go to download

Generic frameowrk with different standalone layers for reporting,logging,test execution and test data management.

There is a newer version: 3.1.2
Show newest version
package com.sunnydsouza.testframework.archive;

import java.util.HashMap;

import org.openqa.selenium.WebDriver;
import org.openqa.selenium.chrome.ChromeDriver;
import org.openqa.selenium.chrome.ChromeOptions;
import org.openqa.selenium.firefox.FirefoxDriver;
import org.openqa.selenium.firefox.FirefoxOptions;

public class Localization {

		public static void main(String[] args){
			
			String language = "";
			HashMap chromePrefs = new HashMap();
			
			chromePrefs.put("intl.accept_languages", language);
			ChromeOptions options = new ChromeOptions();
			options.setExperimentalOption("prefs", chromePrefs);
			WebDriver driver1 = new ChromeDriver(options);
			
			
			FirefoxOptions options2 = new FirefoxOptions();
			options2.addPreference("intl.accept_languages", language);
			WebDriver driver2 = new FirefoxDriver(options);
		}
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy