-
-
Notifications
You must be signed in to change notification settings - Fork 8.2k
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
[🐛 Bug]: Selenium manager not found via Anaconda distribution #11234
Comments
@Sweetbarrow, thank you for creating this issue. We will troubleshoot it as soon as we can. Info for maintainersTriage this issue by using labels.
If information is missing, add a helpful comment and then
If the issue is a question, add the
If the issue is valid but there is no time to troubleshoot it, consider adding the
If the issue requires changes or fixes from an external project (e.g., ChromeDriver, GeckoDriver, MSEdgeDriver, W3C),
add the applicable
After troubleshooting the issue, please add the Thank you! |
Hmm, it's failing on conditional
On my mac this is:
|
@Sweetbarrow can you drop the output of this in your script:
As a side note; we should list the files in the path etc to debug better in future. Once you have the interpreter path above can you check the file system on disk inside its |
Hi, @symonk
Plus, I can see |
I will get access to a windows machine and use @Sweetbarrow is there a |
@symonk No. |
@symonk I just downloaded seperate executable from Github and it works well now. |
there is a separate selenium manager executable that is distributed and it is what is figuring out which driver to get. |
@titusfortner Thank you for your answer. |
this should be working by default @titusfortner no? I don't think we should close it. (without requiring additional manual installs; pip install should suffice?) |
As user of Selenium, I hope Selenium manager included when get package from package manager. |
Sorry. I was unclear. There are 3 selenium-manager executables (one for each of the 3 major OS's) that are bundled with the various selenium packages, including inside the whl file. Selenium 4.6 in Python should include a For some reason on your machine, it appears that it is not getting found. I know relative file path is trickier in Python than the other languages for *reasons, so it's probably a bug in how it is getting referenced. It might be related to anaconda. We should have had the path it looking for in the error message so we could more easily figure out where it is looking instead of where it should be looking. |
@titusfortner Oh... |
the version shipped by |
My question is what are we doing differently with devtools that we aren't doing for Selenium-Manager? |
@titusfortner possibly this but I haven't a clue how bazel operates really |
Bazel likes things to be explicit. It probably needs you to specify the
module, even if it is auto generated.
It might be worth trying to add `"py.selenium.webdriver.common.linux",
"py.selenium.webdriver.common.windows",` and so on so that it links up the
python packaging ideas like if it were a `MANIFEST.in` file
…On Fri, Nov 11, 2022 at 10:51 PM Simon K ***@***.***> wrote:
@titusfortner <https://github.com/titusfortner> possibly this
<https://github.com/SeleniumHQ/selenium/blob/trunk/py/BUILD.bazel#L141>
but I haven't a clue how bazel operates really
—
Reply to this email directly, view it on GitHub
<#11234 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AAA7MBWTJHHYB3CIIGYZJH3WH3EWPANCNFSM6AAAAAARZ5PTCE>
.
You are receiving this because you are subscribed to this thread.Message
ID: ***@***.***>
|
Fixed in #11329 |
This issue has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs. |
@KittyMurphy in response to your question on the other thread... Selenium Manager only works with what is bundled in the bindings. But if you have the latest Selenium Manager built on your machine, try:
|
@titusfortner I don't have Selenium Manager as it seems to be missing in the conda distribution. For those that are experiencing this issue, I did a pip install instead and now everything seems to be working fine. |
Oh, right, the issue isn't like snap where the driver is special, the issue is that it doesn't actually show up with Selenium. |
I found a workaround. Conda has a separate library, selenium-manager, that is installed in the environment's bin folder. I'll submit a PR in a few minutes |
conda doesn't seem to properly package selenium-manager, so it needs to be install as a separate package (via conda). But this puts it in the environment's bin folder. This commit checks the path for the selenium-manager executable if it isn't installed in the package's webdriver/common/<platform>/ folder. fixes SeleniumHQ#11234 and SeleniumHQ#12084
conda doesn't seem to properly package selenium-manager, so it needs to be install as a separate package (via conda). But this puts it in the environment's bin folder. This commit checks the path for the selenium-manager executable if it isn't installed in the package's webdriver/common/<platform>/ folder. fixes SeleniumHQ#11234 and SeleniumHQ#12084
* fix for conda install of selenium-manager conda doesn't seem to properly package selenium-manager, so it needs to be install as a separate package (via conda). But this puts it in the environment's bin folder. This commit checks the path for the selenium-manager executable if it isn't installed in the package's webdriver/common/<platform>/ folder. fixes #11234 and #12084 * fix linting error * use conda bin folder, rather than searching PATH * fix for tox/linting error
This issue has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs. |
What happened?
I tried to test new Selenium manager feature with Python 3.9.13 and Edge 107.0.1418.35 (Stable) (64bit), but the exception occurs.
The code I tried
and the message is this
WebDriverException: Message: 'msedgedriver' executable needs to be in PATH. Please download from https://developer.microsoft.com/en-us/microsoft-edge/tools/webdriver/
If I enter
msedge
on the 'Run' window, Edge browser opens normally.How can we reproduce the issue?
from selenium import webdriver driver = webdriver.Edge()
Relevant log output
Operating System
Windows 10 Enterprise 22H2
Selenium version
Python 4.6.0
What are the browser(s) and version(s) where you see this issue?
Edge 107.0.1418.35 (Stable) (64bit)
What are the browser driver(s) and version(s) where you see this issue?
Selenium Manager
Are you using Selenium Grid?
No response
The text was updated successfully, but these errors were encountered: