0
我的腳本曾經工作,但突然它已停止工作。
我已經將Selenium更新到最新版本(3.0.2),並且我正在使用最新版本的ChromeDriver(2.26)。在Windows上使用Selenium與ChromeDriver - 錯誤:「無法創建鎖定文件」
這裏的,我認爲是造成該問題的代碼的摘錄:
options = webdriver.ChromeOptions()
options.add_argument("user-data-dir=C:¥Users¥username¥AppData¥Local¥Google¥Chrome¥User Data¥Profile 1")
代碼看起來沒什麼問題的,所以我懷疑它可能是谷歌Chrome的問題,而不是硒之一。我沒有鉻配置文件選項(即默認配置文件)的其他完全相同的腳本完美。
這是我收到錯誤消息:
[7256:21580:1214/033134:ERROR:process_singleton_win.cc(340)] Lock file can not be created! Error code: 32
[7256:21580:1214/033134:ERROR:chrome_browser_main.cc(1703)] Failed to create a ProcessSingleton for your profile directory. This means that running multiple instances would start multiple browser processes rather than opening a new window in the existing process. Aborting now to avoid profile corruption.
任何幫助將非常感激。