edmondscommerce / selenium-server
Selenium(带Chromedriver)安装和运行工具,非常适合与Behat一起使用
1.0.8
2018-03-08 17:29 UTC
This package is auto-updated.
Last update: 2024-09-07 20:17:35 UTC
README
由Edmonds Commerce提供
这是一个简单的包,可以轻松运行带有Chrome驱动程序的Selenium。
它不包含二进制文件,而是在第一次运行时下载它们。
它仅在Linux上运行并经过测试。
要安装,只需将以下内容添加到composer.json文件中,然后运行composer update:
"edmondscommerce/selenium-server": "~1"
运行
bin/selenium-run.bash
在终端中运行Selenium。您可以通过按[ctrl]+[c]来停止Selenium进程。
后台运行
bin/selenium-background-run.bash
这将使用nohup在后台运行进程。
停止后台进程
bin/selenium-stop.bash
这将找到在后台运行的Selenium进程并将其终止。
Firefox / Chrome
默认情况下,此进程使用Chrome。
如果您想使用Firefox,则需要添加firefox
标志,例如:
bin/selenium-run.bash firefox
或者
bin/selenium-background-run.bash firefox