Selenium/PhantomJS raises error
问题 I'm trying to run PhantomJS driver in Python but I'm getting error. I've read that I should pass the whole path as an argument but it didn't help. Here is the code: from selenium import webdriver # driver = webdriver.Chrome('D:\Python_projects\chromedriver_win32/chromedriver.exe') # this works driver = webdriver.PhantomJS(executable_path='D:\Python\phantomjs-2.0.0-windows\bin\phantomjs.exe') ERROR: Traceback (most recent call last): File "path to script", line 8, in <module> driver =