I am trying to run a script on a new server and I get the following error:
WARN Selenium [DEPRECATION] Selenium::WebDriver::Error::InvalidElementStateError is deprecated. Use Selenium::WebDriver::Error::ElementNotInteractableError (ensure the driver supports W3C WebDriver specification) instead.
So far I am not able to figure out the cause of this issue.
Modules:
headless (2.3.1) selenium-webdriver (3.142.7) watir (6.16.5)
ChromeDriver 80.0.3987.87
Any ideas / suggestions?
Thank you.
Related
I have this code in my Cucumber Hooks file to run the ghost driver it was working until yesterday I start seeing the error message:
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
end
Error message:
LoadError: cannot load such file -- selenium/webdriver/phantomjs
Yes, we've removed support for PhantomJS as of Selenium 3.8.
The PhantomJS project is no longer being maintained. If you actually do need headless, please investigate either the Chrome or Firefox headless options.
For those who encounter this error, you can work around it by locking your selenium-webdriver version in your Gemfile like so:
gem 'selenium-webdriver', '~> 3.6.0'
and then bundle update to downgrade.
(You may not even have selenium-webdriver specified in your Gemfile currently if it's just being loaded as a dependency of watir or some other library.)
The long term fix, of course, is to move off of PhantomJS to Chrome or Firefox headless.
Ruby 2.2.5
Upgraded Gems to the following:
-Cucumber 2.4.0
-Selenium Webdriver 3.0.0
-rake 11.3.0
-json 2.0.2
And just upgraded to Firefox 47. Installed Gecko and now I am getting the following error when trying to run in Firefox
unknown option: {:profile=>#<Selenium::WebDriver::Firefox::Profile:0x40bba78 #model=nil, #native_events=true, #secure_ssl=false, #untrusted_issuer=true, #load_no_focus_lib=false, #additional_prefs={"plugin.default.state"=>2}, #extensions={}>} (ArgumentError)
Does anyone have any ideas why?!
I am using selenium webdriver with Ruby. I have two versions of Ruby installed *(Ruby 1.9.3 and 2.0). I have been getting this error:
from C:/Ruby200/lib/ruby/2.0.0/rubygems/core_ext/kernel_require.rb:55:in `require'.
I am thinking if I somehow call Ruby version 1.9.3 in my scripts this error can be avoided. Can someone tell me how to do that? Will this solve the issue?
I tried to run
BROWSER=firefox rspec spec
on a freshly created Volt App
and got this error:
Selenium::WebDriver::Error::WebDriverError:
unable to obtain stable firefox connection in 60 seconds (127.0.0.1:7055)
The app hangs and raises that error after a long wait.
Is Volt Framework not locking selenium webdriver down to the correct version?
So, the solution was to upgrade selenium-webdriver:
gem 'selenium-webdriver', '2.47.0'
Also, upgrading volt 0.9.4pre9 (or 0.9.5) will fix this as well.
gem 'volt', '0.9.4pre9'
I am new to development of Capybara with Rspec using Ruby with selenium. I have installed Caybara and installed RSpec also. But when I am trying to install it is giving an error "Couldn't locate Gemfile". How to rectify the error? How to locate the Gemfile. Is there any Tutorial for Capybara and Rspec to understand better about those?
I am installing those on Windows8.1Pro