Created
August 13, 2012 16:15
-
-
Save rgr2k/3342267 to your computer and use it in GitHub Desktop.
Chrome Driver PT-BR
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| public static void main(String[] args) { | |
| System.setProperty("webdriver.chrome.driver","/home/rgr/chromedriver"); | |
| ChromeOptions options = new ChromeOptions(); | |
| DesiredCapabilities capabilities = DesiredCapabilities.chrome(); | |
| capabilities.setCapability(ChromeOptions.CAPABILITY, options); | |
| Map<String, String> chromePrefs = new HashMap<String,String>(); | |
| chromePrefs.put("settings.language.preferred_languages", "pt-BR"); | |
| capabilities.setCapability("chrome.prefs", chromePrefs); | |
| WebDriver driver = new ChromeDriver(capabilities); | |
| driver.get("http://www.google.com"); | |
| } | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment