How to install Chromedriver and PHANTOMJS in Linux environment

Source: Internet
Author: User

1 To download the browser driver first:

Commonly used are chromedriver and PHANTOMJS.

Chromedirver:https://npm.taobao.org/mirrors/chromedriver
Phantomjs:http://phantomjs.org/download.html

Use Chromedriver to make sure you have a Chrome browser

2 installation

PHANTOMJS:

Unzip the downloaded file (this version is replaced with XXX)

TAR-XVF phantomjs-xxxx.tar.bz2

Move the compression results to where the software should be in the system (the version is replaced with XXX)

sudo mv Phantomjsxxx/usr/local/src/phantomjs

Create a soft connection to the system environment so you can use the PHANTOMJS command.

sudo ln-sf/usr/local/src/phantojs/bin/phantomjs/usr/local/bin/phantomjs

To add a soft connection to execute permissions

sudo chmod u+x,o+x/usr/local/bin/phantomjs

Check the normal use: return to the version information is representative of the normal use

Phantomjs--version

Chromedriver:

Move the downloaded file to the directory where the software should stay:

sudo mv Chromedriver/usr/local/bin/chromedriver

To change user execution permissions:

sudo chmod u+x,o+x/usr/local/bin/chromedriver

Check for normal use:

Chromedriver--version

How to install Chromedriver and PHANTOMJS in Linux environment

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.