Skip to content
This repository has been archived by the owner on Jun 30, 2021. It is now read-only.

Support the google-chrome --lang argument #159

Closed
5 tasks done
pearj opened this issue Jun 21, 2017 · 0 comments
Closed
5 tasks done

Support the google-chrome --lang argument #159

pearj opened this issue Jun 21, 2017 · 0 comments

Comments

@pearj
Copy link
Contributor

pearj commented Jun 21, 2017

I need to be able to specify the google chrome lang by doing something like this:

DesiredCapabilities desiredCapabilities = DesiredCapabilities.chrome();
ChromeOptions options = new ChromeOptions();
options.addArguments("lang=en_GB");
desiredCapabilities.setCapability(ChromeOptions.CAPABILITY, options);

Apparently, the valid --lang args are specified here: https://developer.chrome.com/extensions/i18n#locales-testing

However, due to some weird ubuntu/debian issue you need to specify the language as an environment variable instead LANGUAGE.

This can be easily rectified in the google-chrome wrapper script. I will submit a PR for this.

Operating System

  • I provided my operating system name and version, e.g. output of uname -a
    Linux poc-docker05.aipo.gov.au 3.10.0-514.6.1.el7.x86_64 Retrieve logs #1 SMP Sat Dec 10 11:15:38 EST 2016 x86_64 x86_64 x86_64 GNU/Linux

Image version

  • I have latest version of this image. Upgrade with docker pull elgalu/selenium

  • If I don't have latest version of this image and can't upgrade, I will specify which one I'm using.

Docker version

  • I have latest version of docker and I will specify here the output of docker --version

  • If I don't have latest version of docker I will specify which version with docker --version output
    Docker version 1.12.5, build 047e51b/1.12.5
    Running inside OpenShift (Kubernetes):

  • oc v1.4.1+3f9807a
  • kubernetes v1.4.0+776c994
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

2 participants