Checkout our demo site to practice selenium https://magento.softwaretestingboard.com/
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