docker-selenium icon indicating copy to clipboard operation
docker-selenium copied to clipboard

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

Open 1betty2 opened this issue 1 month ago • 1 comments

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

1betty2 avatar Dec 11 '25 08:12 1betty2

@1betty2, thank you for creating this issue. We will troubleshoot it as soon as we can.


Info for maintainers

Triage this issue by using labels.

If information is missing, add a helpful comment and then I-issue-template label.

If the issue is a question, add the I-question label.

If the issue is valid but there is no time to troubleshoot it, consider adding the help wanted label.

If the issue requires changes or fixes from an external project (e.g., ChromeDriver, GeckoDriver, MSEdgeDriver, W3C), add the applicable G-* label, and it will provide the correct link and auto-close the issue.

After troubleshooting the issue, please add the R-awaiting answer label.

Thank you!

github-actions[bot] avatar Dec 11 '25 08:12 github-actions[bot]

@1betty2, thank you for creating this issue. We will troubleshoot it as soon as we can.

Info for maintainers

Hello team,any updates on this issue , and If you need me to provide more information, please let me know,Thanks

bhu81205-star avatar Dec 15 '25 02:12 bhu81205-star

We are checking on that. But did you have the last image tag which it worked for you?

VietND96 avatar Dec 15 '25 05:12 VietND96

We are checking on that. But did you have the last image tag which it worked for you?

@VietND96 The last time I used this image, didn't encounter this issue. https://hub.docker.com/layers/selenium/node-chrome/134.0/images

bhu81205-star avatar Dec 15 '25 06:12 bhu81205-star

We are checking on that. But did you have the last image tag which it worked for you?

@VietND96 The last time I used this image, didn't encounter this issue. https://hub.docker.com/layers/selenium/node-chrome/134.0/images Hi @VietND96 ,any update on this issue

1betty2 avatar Dec 17 '25 03:12 1betty2