LoginSignup
0
1

More than 5 years have passed since last update.

pythonとselceniumでIE11を動かす 準備編

Posted at

画面単体テストとか言いながら画面ポチポチしてスクショして、、、の繰り返しに飽きた

環境

  • windows10
  • IE11
  • python3.6.7
  • celenium

動作確認

準備

selenium install

pipでやる
pip install selenium

driver download

ここでおとす

確認ソース

from selenium import webdriver

def get_driver():
    return webdriver.Ie('C:/01_work/98_python/python_selenium/driver/IEDriverServer.exe')


if __name__ == '__main__':
    driver = get_driver()

エラー

SessionNotFoundException(Unexpected error launching Internet Explorer. Protected Mode)が出た
解決

無事first pageが出ました

driver.get(url)とかで遷移可能
クロールとかに使えそう?
スクリーンショットとかもできるらしいから普段の業務にも使えそう

0
1
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
0
1