install chrome and chrome driver on ubuntu

sudo apt install python-minimal # python 2.7.x
sudo apt install python-pip

# https://www.ubuntuupdates.org/ppa/google_chrome
wget -q -O - https://dl-ssl.google.com/linux/linux_signing_key.pub | sudo apt-key add -
sudo sh -c ‘echo "deb [arch=amd64] http://dl.google.com/linux/chrome/deb/ stable main" >> /etc/apt/sources.list.d/google.list‘

sudo apt-get update
sudo apt-get install google-chrome-stable
# download chrome driver from https://chromedriver.storage.googleapis.com/index.html?path=2.31/
wget https://chromedriver.storage.googleapis.com/2.31/chromedriver_mac64.zip
unzip chromedriver_mac64.zip
sudo cp ./chromedriver /usr/bin/

sudo pip install selenium
sudo pip install requests
sudo pip install beautifulsoup4
sudo pip install pyyaml
sudo pip install python-dateutil

时间: 2024-11-15 13:52:58

install chrome and chrome driver on ubuntu的相关文章

【转】install intel wireless 3165 driver for ubuntu 14.04.3

[转]install intel wireless 3165 driver for ubuntu 14.04.3 Ubuntu 14.04.3 with 3.19 kernel can’t drive the new Intel Wireless 3165 AC with firmware version 13.This is about how to install the driver mannually. Today I changed a new Dell vastro 5000 ser

How to install 64-bit Google Chrome 28+ on 64-bit RHEL/CentOS 6 or 7

How to install 64-bit Google Chrome 28+ on 64-bit RHEL/CentOS 6 or 7 The problem Google developers seem to think that Red Hat Enterprise Linux 6 - aka RHEL 6 - and its free equivalents (e.g. CentOS 6 and Scientific Linux 6) are no longer worth suppor

【Chrome】Chrome插件开发(一)插件的简单实现

不同浏览器插件开发比较 Chrome的插件开发起来最简单,总体上看没什么新的技术,开发语言就是javascript,web前端工程师能很快上手. Firefox的插件开发则复杂许多,涉及到环境的搭建和一些WEB以外的技术. IE的插件开发就更复杂了,需要熟悉C++和COM技术,当然还要装微软的Visual Studio. 这里有篇老外写的文章,对比Chrome.Opera和Firefox的插件开发的:http://blog.nparashuram.com/2011/10/writing-brow

Install Redmine 3.2.0 on Ubuntu 14.04

To install redmine 3.2.0 on Ubuntu 14.04, mainly follow the tutorial: HowTo Install Redmine 3.0.x on Ubuntu 14.04 with Apache2, Phusion Passenger, MySQL, Subversion and Git (Gitolite) During the install process, some problems are encountered. The res

让浏览器进行跨域访问, 开发阶段需要跨域访问的测试方案 chrome的快捷方式里面 加 "C:\Program Files (x86)\Google\Chrome\Application\chrome.exe" --args --disable-web-security

Chrome浏览器 的快捷方式里加一个 命令可以使浏览器进行跨域访问 "C:\Program Files (x86)\Google\Chrome\Application\chrome.exe" --args --disable-web-security     

install the Mondo Rescue utility in Ubuntu 12.04 or 12.10.

  1. Open a terminal window. 2. Type in the following commands, then hit Enter after each. wget ftp://ftp.mondorescue.org/ubuntu/`lsb_release -r|awk '{print $2}'`/mondorescue.sources.listsudo sh -c "cat mondorescue.sources.list >> /etc/apt/sour

Install 32bit libraries in 64 bit ubuntu(14.10)

*/--> Install 32bit libraries in 64 bit ubuntu(14.10) I downloaded lingo11 (which is a cracked version,32bit), and when I was trying to run that program in 64 bit ubuntu, the bash complained that the target exection file did not exist. And I realized

自动化测试学习总结:ie,chrome,firefox各个driver安装和使用之Chrome

先上chrome driver和chrome版本对照表 chromedriver版本 支持的Chrome版本 v2.31 v58-60 v2.30 v58-60 v2.29 v56-58 v2.28 v55-57 v2.27 v54-56 v2.26 v53-55 v2.25 v53-55 v2.24 v52-54 v2.23 v51-53 v2.22 v49-52 v2.21 v46-50 v2.20 v43-48 v2.19 v43-47 v2.18 v43-46 v2.17 v42-43

自动化测试学习总结:ie,chrome,firefox各个driver安装和使用之Firefox

selenium目前有2和3两个版本,selenium2支持Firefox48以下,selenium3要求最少firefox48以上,firefox48以下不需要下载单独的driver,48以上需要下载geckodriver,地址:https://github.com/mozilla/geckodriver/releases.笔者使用的是firefox54,对应下载的geckodriver是0.18,如图: 下载之后放入环境变量即可.