LoginSignup
9
16

More than 5 years have passed since last update.

SeleniumでEdgeを使うお話

Posted at

SeleniumでEdgeを使うお話

Edge用のWebDriverの準備

まずはEdgeのバージョン確認
Edgeの[設定]->[全般]から一番下までスクロールするとバージョンを確認できます。

EdgeのバージョンにあったWebDriverを下記からダウンロードします。
WebDriver - Microsoft Edge Development

WebDriverの読み込み

from selenium import webdriver
driver = webdriver.Edge(executable_path='C:\\...\\MicrosoftWebDriver.exe')
driver.get('https://www.bing.com/')

参考

SeleniumでMicrosoft Edgeブラウザを動かす方法
Seleniumを使ってPythonでブラウザ操作 - Qiita

9
16
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
9
16