Comments (11)
@amcmillion3 This is correct, the deprecation will go away in the newer version of Rails.
from selenium.
@shouichi, thank you for creating this issue. We will troubleshoot it as soon as we can.
Info for maintainers
Triage this issue by using labels.
If information is missing, add a helpful comment and then I-issue-template
label.
If the issue is a question, add the I-question
label.
If the issue is valid but there is no time to troubleshoot it, consider adding the help wanted
label.
If the issue requires changes or fixes from an external project (e.g., ChromeDriver, GeckoDriver, MSEdgeDriver, W3C),
add the applicable G-*
label, and it will provide the correct link and auto-close the
issue.
After troubleshooting the issue, please add the R-awaiting answer
label.
Thank you!
from selenium.
@titusfortner do you know if this is correct?
from selenium.
I am running into the same thing. Unless I pin to 4.19.0 I get Selenium::WebDriver::Error::UnknownError: unknown error: cannot find Chrome binary
cc/ @p0deje
from selenium.
Ideally, Rails would not attempt to preload drivers/browsers via a direct API call of Selenium. Reading through the code, this is done to avoid race conditions when running tests in parallel. I think that Selenium should handle this internally so that concurrent attempts to preload the driver/browser would ensure there are no race conditions and wait for the first process to finish downloading, then yield to other binary calls. With this implementation in place, the related part of Rails code can be removed:
It's a fairly simple change that I can do both in Selenium and Rails, but I am not sure if that suits the Rails users. @searls Do you happen to know if it would be fine for Rails to pin Selenium to say >= 4.20.2
in the next Rails version?
from selenium.
It's a fairly simple change that I can do both in Selenium and Rails, but I am not sure if that suits the Rails users. @searls Do you happen to know if it would be fine for Rails to pin Selenium to say >= 4.20.2 in the next Rails version?
I'm not on Rails core so it's not for me to say, but I would wager that simply releasing a fix in Selenium to allow anyone who runs into this to receive the fix via bundle update
to a patch release would be plenty to resolve it, regardless
from selenium.
@searls @shouichi Can you see if 4.21.1 solve the problem for you?
from selenium.
@p0deje 4.21.1 solved the problem. Thank you!
from selenium.
Great!
from selenium.
Confirm: fixed me too
from selenium.
We're using selenium-webdriver
4.21.1 in our Rails application, but we're still seeing the deprecation message. Based on this discussion, it sounded like the deprecation warning going off is a byproduct of how Rails system tests work. Is it fair to assume that there's not direct action that we can take for the time being to resolve this issue?
from selenium.
Related Issues (20)
- [🐛 Bug]: Running ./scripts/format.sh on macOS cause an error with downloading coreutils HOT 2
- [🐛 Bug]: TypeError: WebDriver.__init__() got an unexpected keyword argument 'desired_capabilities' HOT 6
- [🐛 Bug]: NoSuchDriverException for symbolic links HOT 3
- [🐛 Bug]: Selenium Manager is not thread synchronized? HOT 2
- [🐛 Bug]: Selenium Grid node 4.21 trying to download driver even when driver are present on the system HOT 10
- [🐛 Bug]: Not able to disable chrome prompt through chromeOptions for chrome version 125.0.6422.142 HOT 5
- [🐛 Bug]: Selenium Using Css Selector with tilde signature is throwing org.openqa.selenium.InvalidSelectorException: invalid selector: HOT 5
- [🐛 Bug]: Cannot download file with Javascript. WebDriverError: Cannot find file [xxx] in directory xxxx HOT 3
- [🐛 Bug]: log writing failed. log writing failed. "\xC2" from ASCII-8BIT to UTF-8 HOT 2
- [🐛 Bug]: visual studio Bug: senenium in headless mode : "--headless=new" cant swich to a new window tab and recognize Xpath web element HOT 2
- [🐛 Bug]: Strong Name Key HOT 10
- [🚀 Feature]: Full page screenshots for Chrome HOT 4
- [🐛 Bug]: Selenium Firefox shadow element is not clicked by webelement.click() HOT 3
- [🐛 Bug]: UnsupportedOperationException: getShadowRoot on Actions.dragAndDrop() HOT 6
- [🐛 Bug]: Getting error code: "65: Wrong browser/driver version" while triggering the chromedriver in C# N-unit project HOT 2
- [🐛 Bug]: Curb Http Client
- [🐛 Bug]: ...package...config.SeleniumConfig: Bean instantiation via factory method failed; nested exception is org.springframework.beans.BeanInstantiationException HOT 1
- [🐛 Bug]: Selenium Grid cannot create a session without --enable-managed-downloads true HOT 6
- [🚀 Feature]: WebDriver-BiDi - Browsing Context to support Csharp HOT 2
- [🐛 Bug]: Unable to obtain driver for firefox using Selenium Manager HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from selenium.