小生新手一个,现在初学软件测试。今天安装selenuim时候,在命令窗口执行dr=Firefox()浏览器不行,弹出浏览器,有个报错特来请教谢谢。
dr = webdriver.Firefox()
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "C:\Users\Administrator\AppData\Local\Programs\Python\Python37\lib\site-packages\selenium\webdriver\firefox\webdriver.py", line 55, in __init__
self.binary = firefox_binary or capabilities.get("binary", FirefoxBinary())
File "C:\Users\Administrator\AppData\Local\Programs\Python\Python37\lib\site-packages\selenium\webdriver\firefox\firefox_binary.py", line 44, in __init__
self._log_file = log_file or open(os.devnull, "wb")
FileNotFoundError: [Errno 2] No such file or directory: 'nul' |
|