当前位置: 首页> 娱乐> 影视 > 如何网站公司小程序_温州做网站_服务之家网站推广_seo推广怎么做视频教程

如何网站公司小程序_温州做网站_服务之家网站推广_seo推广怎么做视频教程

时间:2025/7/12 20:48:49来源:https://blog.csdn.net/u012874998/article/details/144177358 浏览次数:0次
如何网站公司小程序_温州做网站_服务之家网站推广_seo推广怎么做视频教程

一、根据selenium/hub官网的配置信息,进行配置。

How to run this image
The Hub and Nodes will be created in the same network and they will recognize each other by their container name. A Docker network⁠ needs to be created as a first step.Create a Docker Network
docker network create grid
Start the Hub using the created network
docker run -d -p 4442-4444:4442-4444 --net grid --name selenium-hub selenium/hub:latest
Start the Node using the created network
docker run -d --net grid -e SE_EVENT_BUS_HOST=selenium-hub \--shm-size="2g" \-e SE_EVENT_BUS_PUBLISH_PORT=4442 \-e SE_EVENT_BUS_SUBSCRIBE_PORT=4443 \selenium/node-chrome:latest
If you are using Windows Powershell, use this command:docker run -d --net grid -e SE_EVENT_BUS_HOST=selenium-hub `--shm-size="2g" `-e SE_EVENT_BUS_PUBLISH_PORT=4442 `-e SE_EVENT_BUS_SUBSCRIBE_PORT=4443 `selenium/node-chrome:latest
Point your WebDriver tests to http://localhost:4444⁠

在运行生成容器 selenium/node-chrome时,这里可以增加一些浏览器数量和关在数据卷目录的参数:

-e SE_NODE_MAX_SESSIONS=2 
-e SE_NODE_OVERRIDE_MAX_SESSIONS=true
-v /Users/jd/selenium2node/dev/shm:/dev/shm

在这里插入图片描述

关键字:如何网站公司小程序_温州做网站_服务之家网站推广_seo推广怎么做视频教程

版权声明:

本网仅为发布的内容提供存储空间,不对发表、转载的内容提供任何形式的保证。凡本网注明“来源:XXX网络”的作品,均转载自其它媒体,著作权归作者所有,商业转载请联系作者获得授权,非商业转载请注明出处。

我们尊重并感谢每一位作者,均已注明文章来源和作者。如因作品内容、版权或其它问题,请及时与我们联系,联系邮箱:809451989@qq.com,投稿邮箱:809451989@qq.com

责任编辑: