码迷,mamicode.com
首页 > 系统相关 > 详细

ubuntu环境搭建selenium

时间:2020-04-24 13:16:08      阅读:94      评论:0      收藏:0      [点我收藏+]

标签:org   ons   show   desktop   google   get   connect   single   should   

Environment

Ubuntu 16.04 LTS

install selenium

You can use pip install selenium, maybe specify the version

pip install selenium==3.4.1

Download ChromeDriver

this website download ChromeDriver.

tip: you must knwon which version the your chrome is, you should download the version that support your chrome.

the latest version is:

Latest Release: ChromeDriver 2.33

Supports Chrome v60-62

when extract the rar file we can get single chromedriver file, then put it in $PATH.

show the path dir:

$ echo $PATH

so I will choose /usr/local/bin/

 sudo mv ./chromedriver /usr/local/bin/

test if it works:

$ chromedriver
Starting ChromeDriver 2.24.417424 (c5c5ea873213ee72e3d0929b47482681555340c3) on port 9515
Only local connections are allowed.

it starting on port 9515, wow it works.

ubuntu环境搭建selenium

标签:org   ons   show   desktop   google   get   connect   single   should   

原文地址:https://www.cnblogs.com/for-you/p/12620378.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!