连续运行几个小时后,我收到以下错误
X request waiting for slots to be free
22:39:19 [main] ERROR net.thucydides.core.steps.ConsoleLoggingListener - Could not instantiate new WebDriver instance of type class org.openqa.selenium.chrome.ChromeDriver (Error forwarding the new session Request timed out waiting for a node to become available.
在论坛上搜索此错误后,我发现我需要设置 maxInstances、maxSessions 和超时(建议如果这不是解决方案)。
那么,如何使用此命令设置这 3 个属性:
docker run --rm -ti --name zalenium -p 4444:4444 \
-v /var/run/docker.sock:/var/run/docker.sock \
-v /tmp/videos:/home/seluser/videos \
--privileged dosel/zalenium start