TA的每日心情 | 擦汗 8 小时前 |
---|
签到天数: 1620 天 连续签到: 5 天 [LV.Master]测试大本营
|
始终提示:目录名称
>>> browser = webdriver.Firefox('D:/Program Files/Firefox/firefox.exe')
Traceback (most recent call last):
File "<pyshell#16>", line 1, in <module>
browser = webdriver.Firefox('D:/Program Files/Firefox/firefox.exe')
File "D:\python\lib\site-packages\selenium\webdriver\firefox\webdriver.py", line 132, in __init__
firefox_profile = FirefoxProfile(firefox_profile)
File "D:\python\lib\site-packages\selenium\webdriver\firefox\firefox_profile.py", line 78, in __init__
ignore=shutil.ignore_patterns("parent.lock", "lock", ".parentlock"))
File "D:\python\lib\shutil.py", line 303, in copytree
names = os.listdir(src)
NotADirectoryError: [WinError 267] 目录名称无效。: 'D:/Program Files/Firefox/firefox.exe'
|
|