Checkout our demo site to practice selenium https://magento.softwaretestingboard.com/

0 like 0 dislike
516 views
by
retagged by
I am doing localization testing. I would like to know how do I change the language of my chrome browser using Selenium WebDRiver?

1 Answer

0 like 0 dislike
by Master (1.2k points)

Below is the syntax you can use for Chrome Browser :

System.setProperty("webdriver.chrome.driver","D:/.../chromedriver.exe");

ChromeOptions options = new ChromeOptions();

options.addArguments("-lang= sl");

ChromeDriver driver = new ChromeDriver(options);

driver.get("http://www.google.com);



Read more: https://softwaretestingboard.com/qna/2347/how-to-change-the-language-of-the-browser-selenium-webdriver#ixzz53Jwtn01s


This site is for software testing professionals, where you can ask all your questions and get answers from 1300+ masters of the profession. Click here to submit yours now!

1.4k questions

1.6k answers

866 comments

1.9k users

...