Skip to content

[🐛 Bug]: When performing automation using the selenium/node-chrome:142.0 image, the displayed Thai text is incorrect #3043

@1betty2

Description

@1betty2

What happened?

Perform an automated test using selenium gird. Open a web page(https://qaauto.ottuat.com/ott/th) for the Thai region with a chrome browser, and the Thai text displayed on the web page is incorrect.
expected:
ซีรีส์เกาหลี | ตอน 116
Image

actual:
Image

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

#=============================================================================
docker-compose file:
services:
  selenium-hub2:
    container_name: hub2
    image: selenium/hub:4.38
    ports:
      - "4446:4442"
      - "4447:4443"
      - "4445:4444"
    restart: unless-stopped  # Set automatic restart 

  selenium-node41:
    container_name: chrome_41
    environment:
    - SE_EVENT_BUS_HOST=192.168.1.61
    - SE_EVENT_BUS_PUBLISH_PORT=4446
    - SE_EVENT_BUS_SUBSCRIBE_PORT=4447
    - HUB_HOST=192.168.1.61
    - HUB_PORT=4445
    - SE_NODE_HOST=192.168.12.114
    - SE_NODE_PORT=10041
    - SE_START_VNC=true
    - SE_NODE_VNC_ENABLED=true
    - SE_NODE_VNC_PORT=7841
    - SE_NODE_VNC_RESOLUTION=2080X19200
    - SCREEN_WIDTH=1360           
    - SCREEN_HEIGHT=1020
    - SE_VNC_LOCAL_SCALING=true
    - SE_VNC_NO_PASSWORD=true
    - SE_NODE_MAX_INSTANCES=2
    - SE_NODE_MAX_SESSIONS=1
    - SE_NODE_STEREOTYPE={"browserName":"chrome","browserVersion":"142.0","platformName":"Linux","nodename:applicationName":"chrome_41","networkname:applicationName":"chrome_41","goog:chromeOptions":{"binary":"/usr/bin/google-chrome"}}
    image: selenium_node142.0_web_test_1211
    ports:
    - 192.168.12.114:10041:10041
    - 192.168.12.114:7841:7900
    shm_size: 2gb
    volumes:
    - /media/viu/VIUAUTOQA2T/web_screen_records:/media
    - /home/web_farm/docker/mitmproxy-ca-cert.crt:/usr/local/share/ca-certificates/mitmproxy-ca-cert.crt

#=============================================================================

Dockerfile:
FROM selenium/node-chrome:142.0

USER root

# for screen recording
RUN sudo apt-get update && sudo apt-get install -y ffmpeg && sudo apt-get install xvfb -y
COPY --chown=seluser:seluser screen_recording_uploading.py /home/seluser/

# for email trigger
USER root
RUN sudo apt-get install -y sylpheed && apt-get install -y xdotool

# for mitmproxy,install mitmproxy in venv by pip
RUN /home/seluser/venv/bin/pip install --upgrade pip setuptools wheel && \
    /home/seluser/venv/bin/pip install mitmproxy==12.2.1
COPY --chown=seluser:seluser apig_http_logger.py /home/seluser/

USER seluser
WORKDIR /home/seluser

RUN python3 --version
#=============================================================================

Relevant log output

08:30:38.094 INFO [LocalNode.stopTimedOutSession] - Session id 3cbd8ea49d60383cc598c0f72300635f timed out, stopping...
08:30:38.195 INFO [SessionSlot.stop] - Stopping session 3cbd8ea49d60383cc598c0f72300635f
08:47:53.367 INFO [LocalNode.newSession] - Session created by the Node. Id: a2bf02c936b65fcae1938f88b93c97bd, Caps: Capabilities {acceptInsecureCerts: true, browserName: chrome, browserVersion: 142.0.7444.59, chrome: {chromedriverVersion: 142.0.7444.59 (4b8153ab58d3..., userDataDir: /tmp/.org.chromium.Chromium...}, fedcm:accounts: true, goog:chromeOptions: {debuggerAddress: localhost:38047}, goog:processID: 3134, networkConnectionEnabled: false, nodename:applicationName: chrome_41, pageLoadStrategy: normal, platformName: linux, proxy: Proxy(), se:bidiEnabled: false, se:cdp: ws://172.18.0.4:4444/sessio..., se:cdpVersion: 142.0.7444.59, se:deleteSessionOnUi: true, se:downloadsEnabled: true, se:noVncPort: 7900, se:vnc: ws://172.18.0.4:4444/sessio..., se:vncEnabled: true, se:vncLocalAddress: ws://172.18.0.4:7900, setWindowRect: true, strictFileInteractability: false, timeouts: {implicit: 0, pageLoad: 300000, script: 30000}, unhandledPromptBehavior: dismiss and notify, webauthn:extension:credBlob: true, webauthn:extension:largeBlob: true, webauthn:extension:minPinLength: true, webauthn:extension:prf: true, webauthn:virtualAuthenticators: true}
08:53:08.094 INFO [LocalNode.stopTimedOutSession] - Session id a2bf02c936b65fcae1938f88b93c97bd timed out, stopping...
08:53:08.182 INFO [SessionSlot.stop] - Stopping session a2bf02c936b65fcae1938f88b93c97bd

Operating System

No LSB modules are available. Distributor ID: Ubuntu Description: Ubuntu 24.04.3 LTS Release: 24.04 Codename: noble

Docker Selenium version (image tag)

Selenium Grid 4.38.0 (revision 6b412e825c)

Selenium Grid chart version (chart version)

No response

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