Skip to content

[🐛 Bug]: Can't change firefox language #2361

@lacell75

Description

@lacell75

What happened?

I can't start selenium/node-firefox with french language. The language still set to en-us. I start the session with these below parameters:

    browserName: 'firefox',
    acceptInsecureCerts: true,
    'moz:firefoxOptions': {
      prefs: {
        'dom.ipc.processCount': 16,
        'browser.download.folderList': 2,
        'browser.download.dir': global.downloadDirFirefox,
        'browser.download.useDownloadDir': true,
        'browser.helperApps.neverAsk.saveToDisk':
          'application/vnd.ms-excel;application/vnd.openxmlformats-officedocument.spreadsheetml.sheet',
        'nglayout.initialpaint.delay': 0,
        'intl.accept_languages': 'fr,fr-FR',
        'intl.locale.requested': 'fr,fr-FR',
      },
      args: ['--width=1980', '--height=1080'],
    },

The parameters are correct in about:config but the browser language is in english instead of french
image

Command used to start Selenium Grid with Docker (or Kubernetes)

apiVersion: apps/v1
kind: Deployment
metadata:
  name: seleniumv4-node-firefox
  namespace: seleniumv4
  labels:
    app: seleniumv4-node-firefox
spec:
  replicas: 7
  selector:
    matchLabels:
      app: seleniumv4-node-firefox
  template:
    metadata:
      labels:
        app: seleniumv4-node-firefox
      annotations:
        cluster-autoscaler.kubernetes.io/safe-to-evict: "false"
    spec:
      affinity:
        nodeAffinity:
          requiredDuringSchedulingIgnoredDuringExecution:
            nodeSelectorTerms:
              - matchExpressions:
                  - key: kops.k8s.io/instancegroup
                    operator: In
                    values:
                      - nodes-spot-selenium
                  - key: awstype
                    operator: In
                    values:
                      - spot
      volumes:
        - name: dshm
          emptyDir:
            medium: Memory
        - name: tz-paris
          hostPath:
            path: /usr/share/zoneinfo/Europe/Paris
        - name: timezone
          configMap:
            name: seleniumv4-config
      containers:
        - name: seleniumv4-node-firefox
          image: selenium/node-firefox
          imagePullPolicy: Always
          ports:
            - containerPort: 5555
            - containerPort: 5900
            - containerPort: 7900
          volumeMounts:
            - mountPath: /dev/shm
              name: dshm
            - name: tz-paris
              mountPath: /etc/localtime
            - name: timezone
              mountPath: /etc/timezone
              subPath: timezone
          env:
            - name: SE_SCREEN_WIDTH
              value: "1920"
            - name: SE_SCREEN_HEIGHT
              value: "1080"
            - name: SE_SESSION_REQUEST_TIMEOUT
              value: "600"
            - name: SE_NODE_SESSION_TIMEOUT
              value: "300"
            - name: SE_NODE_MAX_SESSIONS
              value: "2"
            - name: SE_NODE_OVERRIDE_MAX_SESSIONS
              value: "true"
            - name: SE_NODE_GRID_URL
              value: "http://seleniumv4-hub:4444/"
            - name: SE_NODE_HOST
              valueFrom:
                fieldRef:
                  fieldPath: status.podIP
            - name: SE_NODE_PORT
              value: "5555"
            - name: SE_EVENT_BUS_HOST
              value: "seleniumv4-hub"
            - name: SE_EVENT_BUS_PUBLISH_PORT
              value: "4442"
            - name: SE_EVENT_BUS_SUBSCRIBE_PORT
              value: "4443"
            - name: TZ
              value: "Europe/Paris"
            - name: SE_OPTS
              value: ''
            - name: SE_JAVA_OPTS
              value: '-Dwebdriver.firefox.whitelistedIps=0.0.0.0 -Xms12g -Xmx12g -Duser.timezone=Europe/Paris'
            # - name: START_XVFB
            #   value: "false"
          resources:
            requests:
              memory: "13.5Gi"
              cpu: "3.5"
            limits:
              memory: "13.5Gi"

Relevant log output

no logs

Operating System

linux 5.15.0-1065-aws amd64

Docker Selenium version (image tag)

latest

Selenium Grid chart version (chart version)

4.23.1

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions