LoadError: cannot load such file -- selenium/webdriver/phantomjs

141 views
Skip to first unread message

江南

unread,
Dec 7, 2017, 11:05:49 AM12/7/17
to phantomjs

Hi,

I have been using the code below until yesterday it was working all fine but today I am seeing this message:

In my Cucumber Hooks file I have:

Before do
Selenium::WebDriver::PhantomJS.path = 'C:\phantomjs-2.1.1-windows\bin\phantomjs.exe'
@browser = Watir::Browser.start "https://www.google.com" ,:phantomjs
@browser.window.maximize
@browser.wait
end

LoadError: cannot load such file -- selenium/webdriver/phantomjs

Can someone please tell me what is the problem? 

Thanks
Reply all
Reply to author
Forward
0 new messages