Python selenium webdriver “Session not created” exception when opening Chrome

前端 未结 3 919
Happy的楠姐
Happy的楠姐 2020-12-10 06:06

Here\'s my code for opening Chrome:

from selenium import webdriver 
driver=webdriver.Chrome(\'C:\\\\Users\\\\Im         


        
3条回答
  •  时光说笑
    2020-12-10 06:41

    Setting LANG=en_US.UTF-8 before executing my script works for me. See this: https://bugs.chromium.org/p/chromedriver/issues/detail?id=1552#c43

    In Python:

    import os
    os.environ["LANG"] = "en_US.UTF-8"
    

提交回复
热议问题