I have selenium 3.6.0 and phantomjs-2.1.1-windows in my Windows 10,and set the PATH to the phantomJS.exe. When I use the code below:
driver = webdriver.PhantomJS(executable_path='') I got the fault:
Traceback (most recent call last): File "D:\Python 3.5.4\test\BeautifulSoup.py", line 10, in <module> driver = webdriver.PhantomJS(executable_path='') File "C:\Program Files\Python35\lib\site- packages\selenium\webdriver\phantomjs\webdriver.py", line 52, in __init__ self.service.start() File "C:\Program Files\Python35\lib\site- packages\selenium\webdriver\common\service.py", line 74, in start stdout=self.log_file, stderr=self.log_file) File "C:\Program Files\Python35\lib\subprocess.py", line 676, in __init__ restore_signals, start_new_session) File "C:\Program Files\Python35\lib\subprocess.py", line 957, in _execute_child startupinfo) OSError: [WinError 87] wrong parameters。
webdriver.PhantomJS()?". Clarify what you need help with, please.