I want to automate localization functions of a web application. According to my application when the browser language changes, application language should change automatically according to the browser language. How to do that?
相关问题
- Selecting an item from a combo box selenium driver
- Selenium in Java is not finding element when using
- How to send text to the search field through Selen
- What is the difference in “find_element_by_xpath”
- WebElement.getText() function and utf8
Set the language code in chrome options before launching the the driver as shown below.
For language codes : https://en.wikipedia.org/wiki/List_of_ISO_639-1_codes