Andersson
Andersson

Reputation: 52665

Can't use chromedriver with Selenium after Ubuntu upgrade

My Ubuntu OS was upgraded from 12 to 14.04 version. Code

from selenium import webdriver
driver = webdriver.Chrome()

works perfect before upgrade, but now I get pop-up with following error:

This computer can no longer run Google Chrome because its hardware is no longer supported

Tried to install stable Chrome version, but it's no use... I still can open Chrome browser and run chromedriver server from shell, but I need to start chromediver with selenium

Upvotes: 2

Views: 627

Answers (1)

Andersson
Andersson

Reputation: 52665

Resolved by adding /bin folder to PATH:

export PATH=$PATH:/bin

as required for using grep and readlink:

user@LinuxServer:~/Desktop$ google-chrome -v

/usr/bin/google-chrome: line 8: readlink: command not found

/usr/bin/google-chrome: line 15: grep: command not found

Upvotes: 3

Related Questions