I set the language in Selenium using: chrome_options.addargument("--lang=en")
.
However, in test I need to check that language is really English.
Maybe I can check it from <html lang='...'>
?
I set the language in Selenium using: chrome_options.addargument("--lang=en")
.
However, in test I need to check that language is really English.
Maybe I can check it from <html lang='...'>
?
Copyright © 2021 Jogjafile Inc.
I use this to get the browser language as a string:
Hope that helps