I did a performance error opening Firefox with Selenium in ipython Notebooks, using the Firefox browser with the following code:
from selenium import webdriver
driver = webdriver.Firefox()
The error message is as follows:
The error the code returns is as follows:
WindowsError Traceback (most recent call last)
<ipython-input-7-fd567e24185f> in <module>()
----> 1 driver = webdriver.Firefox()
Solutions:
When you try to initialize Firefox(), specify the Firefox binaries. The default path, FirefoxDriver, is in %PROGRAMFILES%\Mozilla Firefox\ Foxfox.exe. Specify the Firefox Driver or add the path of the Firefox binaries to the Windows path. The code to specify the firefoxdriver path is as follows:
from selenium import webdriver
from selenium.webdriver.firefox.firefox_binary import FirefoxBinary
binary = FirefoxBinary('path/to/binary')
driver = webdriver.Firefox(firefox_binary=binary)
Sweep yards attention
Practical AI Inn
Get the latest AI information and practical cases
WeChat ID: langu86
Read More:
- net start mysql System error 2 has occurred. The system cannot find the file specified.
- EEROR:Windows named pipe error: The system cannot find the file specified. (code:2)
- os.remove (file) error windowserror: [error 32]
- Quickly solve the problem of Vmware virtual machine “\\.\Global\vmx86”: the system cannot find the specified file
- [error] OpenEvent(“Global\ngx_reload_11812“) failed (2: The system cannot find the file specified
- Win32ctypes. Pywin32. Pywintypes. Error: (2 ‘loadlibraryex’,’the system can’t find the specified file. ‘)
- error TRK0005: Failed to locate: “CL.exe”. The system cannot find the file specified.
- Perfect solution for IntelliJ idea error “CreateProcess error = 2, system cannot find the specified file”
- When idea executes the command, an error is reported: CreateProcess error = 2. The system cannot find the specified file
- Phpstrom reported an error when using SVN: CreateProcess error = 2, the system could not find a solution for the specified file
- Workaround: windowserror: [error 193]% 1 is not a valid Win32 Application
- Solution windowserror: [error 193]% 1 is not a valid Win32 Application
- [Solved] Imx6qdl Android 5.0 kernel 3.10 can’t mount system file system
- Solution: windowserror: [error 2]
- Securityerror: error ᦇ 2148: SWF file XXX cannot access local resources, only file system only
- [Solved] Golang Error: The system cannot find the path specified. [mkdir C:/xx/yy/]:
- Linux find file text command (find | grep)
- Python calls DLL and reports an error windowserror: [error 126]
- Windowserror: [error 183] error and in Python os.raname () detailed explanation
- Error 0x00003 occurred during tableau installation. The system cannot find the specified path