deepin15.11默认安装chrome浏览器
版本 78.0.3904.97(正式版本) (64 位)
pip3 install selenium
下载链接选择与浏览器版本配套的chromedirver版本
unzip chromedriver_linux64.zip
sudo mv chromedriver /usr/bin/
sudo chmod 755 /usr/bin/chromedriver
#!/usr/bin/python3
# -*- condig:utf-8 -*-
from selenium import webdriver
chrome = webdriver.Chrome()
chrome.get(‘https://www.baidu.com/‘)
chrome.find_element_by_id(‘kw‘).send_keys(‘selenium‘)
chrome.find_element_by_id(‘su‘).click()
deepin15.11安装selenium+chrome+chromedirver
原文:https://www.cnblogs.com/jingxindeyi/p/12985013.html