Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[🚀 Feature]: Make selenium-manager optional, provided that you can manage it yourself #13806

Closed
grepwood opened this issue Apr 11, 2024 · 5 comments

Comments

@grepwood
Copy link

Feature and motivation

For the longest time since I started using Selenium back in 2017, I didn't need this kind of feature and now I find myself forced to use it in order to continue using up-to-date Selenium. I can't find any guides online to show me how I can go about using Selenium 4.18 without selenium-manager. I know what browser goes with what driver, thank you very much, I'm not silly enough to mix msedge with geckodriver. I know what paths do all the tools and dependencies have. I appreciate the guardrails, but I really have no need for this kind of assistance.

Also, I'm using Selenium in a workplace where we can't use programs written in Rust. I want everyone to understand that this isn't my decision and it's non-negotiable with people who make these kinds of decisions at my workplace.

Usage example

I would use Selenium like I have so far. Just without the manager, because

  1. I don't need it for my personal projects
  2. Even if I can smuggle a 100% statically linked Rust binary into my workplace, then it's going to introduce an unsustainable build dependency and if security finds out it's over
Copy link

@grepwood, 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!

@diemol
Copy link
Member

diemol commented Apr 12, 2024

Selenium Manager is optional already. If you create the driver service yourself, it won't be used. However, we are still deciding on the behavior for Selenium 5.

I know what browser goes with what driver, thank you very much, I'm not silly enough to mix msedge with geckodriver.

That is great! However, many users do not want to spend time managing drivers and browsers. Selenium Manager was created because the community asked for a tool like this one.

The binary has been embedded in the language bindings since version 4.6.0, and we will keep it this way as it simplifies usage and distribution. If you want to talk more about this topic, join us in our Slack and we will be happy to learn more from your use case.

@diemol diemol closed this as not planned Won't fix, can't repro, duplicate, stale Apr 12, 2024
@kool79
Copy link
Contributor

kool79 commented Apr 23, 2024

IMHO we should have a simple way to disable Selenium Manager, without creation of custom driver services and playing with different combinations of properties.
Even now, when SM is in beta - there are issues which can silently affect test execution because of bugs in SM.
Example is here: #13352. As a user I expect to have an error when something is wrong with path to browser binaries, but instead I just got some unknown browser version

@grepwood
If you are on Java, seems we can disable Selenium Manager without custom driver service.
You need to System.setProperty(...) with a driver location (webdriver.chrome.driver, webdriver.ie.driver, webdriver.gecko.driver, webdriver.edge.driver, webdriver.safari.driver, webdriver.tp.safari.driver).

@grepwood
Copy link
Author

@kool79 I'm on Python and I still have no clue how to deal with this. One year Selenium works, next year it stops. My code that starts up Selenium is here:

I wrote this code in March 2022 up Dec 2022 and it worked flawless back then :/

Copy link

This issue has been automatically locked since there has not been any recent activity since it was closed. Please open a new issue for related bugs.

@github-actions github-actions bot locked and limited conversation to collaborators May 23, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants