1
2

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 5 years have passed since last update.

【Python】Windows Subsystem for LinuxでSelenium環境を整える

Posted at

やりたいこと

結果

  • Chromeが自動起動され、Seleniumを動かせるようになった

cmd.gif

ソースコード

setup.py
import sys
import os
from selenium import webdriver

//1
driver = webdriver.Chrome(executable_path='/mnt/c/workspace/pydev/chromedriver.exe')
//2
driver.get("https://www.google.co.jp/")
print(driver.title)

手順

下記のページを参照

【Python】Windows Subsystem for LinuxでSelenium環境を整える

1
2
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
1
2

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?