I've tried implementing the following, passing along the path of phantomJS.exe installed in the system.
from splinter import Browser
from selenium import webdriver
driver = webdriver.PhantomJS(executable_path="C:\Users\Lenovo\AppData\Local\Enthought\Canopy\User\Lib\site-packages\phantomJS\phantomJS.exe")
browser = Browser(driver)
browser.visit('www.google.com')
if browser.is_element_present_by_name('search'):
print True
Unfortunately it throws me this error: DriverNotFoundError: No driver for <selenium.webdriver.phantomjs.webdriver.WebDriver object at 0x000000000970A8D0>
Whereas, as documented in splinter, I should be able to just use phantomJS by using browser = Browser('phantomJS')
. This gives me DriverNotFoundError: No driver for phantomJS'
Can anyone point me out where I went wrong?