com.sunnydsouza.testframework.archive.Localization Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of testframework Show documentation
Show all versions of testframework Show documentation
Generic frameowrk with different standalone layers for reporting,logging,test execution and test data management.
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);
}
}