Selenium相关下载

Posted nullnullnull

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了Selenium相关下载相关的知识,希望对你有一定的参考价值。

Selenium 与 浏览器驱动

官方下载地址

1. 忽略本地缓存安装 / 升级 Selenium

pip --no-cache-dir install -U selenium

2. Selenium API docs

Selenium API docs

Selenium API docs 翻译

3. Selenium Standalone Server

4. Windows 杀进程

TASKKILL  /IM chrome.exe /f
TASKKILL  /IM iexplore.exe /f
TASKKILL  /IM firefox.exe /f
TASKKILL  /IM IEDriverServer.exe /f
TASKKILL  /IM geckodriver.exe /f
TASKKILL  /IM chromedriver.exe /f

5. Selenium Grid

java -jar selenium-server-standalone-3.141.59.jar
java -jar selenium-server-standalone-3.141.59.jar -role hub -port 4444
java -jar selenium-server-standalone-3.141.59.jar -role node -hub http://127.0.0.1:4444/grid/register
java -jar selenium-server-standalone-3.141.59.jar -role node -maxSession 5 -hub http://127.0.0.1:4444/grid/register
java -jar selenium-server-standalone-3.141.59.jar -role node -hub http://127.0.0.1:4444/grid/register  -maxSession 100 -browser "browserName=htmlunit,javascriptEnabled=true,version=firefox,maxInstances=100"
java -jar selenium-server-standalone-3.141.59.jar -maxSession 100 -role node -hub http://127.0.0.1:4444/grid/register -browser "browserName=chrome,maxInstances=100"
java -jar selenium-server-standalone-3.141.59.jar -maxSession 10 -role node -hub http://127.0.0.1:4444/grid/register -browser browserName=chrome,maxInstances=10 -browser browserName=firefox,maxInstances=10 -browser browserName="internet explorer",maxInstances=5

以上是关于Selenium相关下载的主要内容,如果未能解决你的问题,请参考以下文章

建议收藏—Selenium WebDriver各浏览器驱动下载路径版本对照相关配置

win10_java+selenium环境搭建

selenium的用法

[Python自动化]selenium之文件批量下载

selenium&phantomJs相关

selenium自动化模块的应用