Linux root 用户下 selenium 运行chrome --no-sandbox的问题的解决

#coding = utf-8
from selenium import webdriver
chrome_options = webdriver.ChromeOptions()
chrome_options.add_argument("--no-sandbox")
driver= webdriver.Chrome(chrome_options=chrome_options)

driver.get("https://www.baidu.com")

print(driver.page_source)

  

posted @ 2018-05-15 16:48  Blue-Code  阅读(5611)  评论(0编辑  收藏  举报