Is it possible to open a web page in a specific languages like Japanese or Chinese using Selenium Webdriver?

0 votes
Is it possible to open a web page in a specific languages like Japanese or Chinese using Selenium Webdriver?
Jul 1 in Selenium by Pratyush
74 views

1 answer to this question.

0 votes

Hey Pratyush, yes it is possible to open a webpage in a specific language like Japanese, not only webpage you can set any language for a browser by using setPreferences() method. You can set any languages supported by browser in the following way:

FirefoxProfile profile = new FirefoxProfile();
profile.set Preference("intl.accept_languages","jp");
Web driver driver = new FirefoxDriver(profile);
driver.get(google.com);

The above code snippet will open google in Japanese Language. 

answered Jul 2 by Rubina

Related Questions In Selenium

+1 vote
2 answers
0 votes
2 answers
0 votes
1 answer

Is it possible to manually set the attribute value of a Web Element using Selenium?

Yes, its very much possible. You just ...READ MORE

answered May 8, 2018 in Selenium by king_kenny
• 3,650 points
5,647 views
0 votes
1 answer

Finding WebDriver element with Class Name in java

The better way to handle this element ...READ MORE

answered Apr 10, 2018 in Selenium by nsv999
• 5,090 points
577 views
0 votes
1 answer
0 votes
1 answer

Geo-location microphone camera pop up

To Allow or Block the notification, access using Selenium and you have to ...READ MORE

answered May 11, 2018 in Selenium by Samarpit
• 5,130 points
898 views
0 votes
1 answer

How to use such xpath to find web elements

It's much simpler to use: #MyDiv123 > div.super or ...READ MORE

answered Jun 14, 2018 in Selenium by Samarpit
• 5,130 points
569 views
0 votes
1 answer