如何在Selenium Grid中并行执行webdriver
我在Docker中使用Selenium Grid,webdriver是facebook php-webdriver 。 在这个例子中,我如何运行webdriver并行:
$options = new ChromeOptions(); $options->setExperimentalOption('prefs', [ 'download.default_directory' => Yii::getAlias('@runtime/selenium-download') ]); $capabilities = DesiredCapabilities::chrome(); $capabilities->setCapability(ChromeOptions::CAPABILITY, $options); $driver = RemoteWebDriver::create($host, $capabilities, 5000); $driver->get('http://google.com'); $driver->takeScreenshot('/tmp/google.png')
这是我的节点configuration
browserTimeout:0 debugging:错误 帮助:错误 jettyMaxThreads:-1 端口:5555 angular色:节点 超时:30 cleanUpCycle:5000 主持人:172.24.0.3 maxSession:3 function:function[{seleniumProtocol = WebDriver,browserName = chrome,maxInstances = 3,版本= 62.0.3202.62,applicationName =,platform = LINUX]] downPollingLimit:2 hub:http:// hub:4444 / grid / register ID:http://172.24.0.3:5555 hubHost:集线器 hubPort:4444 nodePolling:5000 nodeStatusCheckTimeout:5000 代理:org.openqa.grid.selenium.proxy.DefaultRemoteProxy 注册:是 注册周期:5000 remoteHost:http://172.24.0.3:5555 unregisterIfStillDownAfter:60000
- 在Docker构build文件中使用自定义Cert设置Jetty Runner
- IntelliJ IDEA(/ PyCharm)+ Docker + GAE(gcloud)。 如何在Docker容器下使用GAE SDK?
- Postgres是否devise写入共享数据存储?
- 节点npmtesting种子postgres,Dockernetworking容器看到不同的结果
- Postgres到Ubuntu的Docker容器链接不工作
- docker集装箱之间有时间同步?
- 在docker上持久的postgres
- 无法从容器与Django应用程序连接到MySQLdocker容器
- Docker中的Mongodb:numactl –interleave =所有的解释