Инструменты пользователя

Инструменты сайта


service:selenoid

Это старая версия документа!


Selenoid

Selenium, упакованный в Docker.

Решение проблем

org.openqa.selenium.NoSuchSessionException: invalid session id

Большинство тестов завершаются неуспешно. Браузеру Chrome не хватает памяти. Дело в том, что размер shm в Докере по умолчанию 64 МБ.

Chrome uses /dev/shm for runtime data which is 64MB by default under Docker. If this is > not sufficient then this can cause Chrome to crash.
Possible workarounds:

  • Increase the size of /dev/shm
  • Mount /dev/shm to the host's
  • Start Chrome with the flag –disable-dev-shm-usage

В моём случае я применил docker run –shm-size=512m

https://stackoverflow.com/questions/57340315/org-openqa-selenium-nosuchsessionexception-invalid-session-id-message-this-ver

service/selenoid.1729257389.txt.gz · Последнее изменение: 18.10.2024 13:16 — viacheslav

Donate Powered by PHP Valid HTML5 Valid CSS Driven by DokuWiki