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鈥檒l occasionally send you account related emails.

Already on GitHub? Sign in to your account

[馃悰 Bug]: selenium-manager hangs when trying to use selenium against electron app #13919

Open
rasjani opened this issue May 8, 2024 · 2 comments

Comments

@rasjani
Copy link

rasjani commented May 8, 2024

What happened?

When trying to use python seleniun bindings that have selenium-manager already in and trying to launch Electron app, selenium-manager hangs indefinitely(?) in https://github.com/SeleniumHQ/selenium/blob/trunk/py/selenium/webdriver/common/selenium_manager.py#L108

Im creating a webdriver and passing options to it to point browser binary to an electron app like this;

from selenium.webdriver.chrome.options import Options
signal_electron = Options()
signal_electron.binary_location = "/Applications/Signal.app/Contents/MacOS/Signal"

Same code works with older selenium releases (4.0.9 was my base line) since i do have correct chromedriver in path that matches the electron version.

Worth pointing out that i have following env variables set:

SE_OFFLINE=true
SE_DEBUG=true
SE_AVOID_BROWSER_DOWNLOAD=true
SE_AVOID_STATS=true

How can we reproduce the issue?

Since I'm actually utilizing robot framework's SeleniumLibrary, i dont happen to have "pure python" implementation to reproduce. However, ask here or ping me on selenium slack and i can provide more details (rasjani on slack)

Relevant log output

none at this time

Operating System

macos ventura

Selenium version

python 4.2.0

What are the browser(s) and version(s) where you see this issue?

chrome electron

What are the browser driver(s) and version(s) where you see this issue?

electron 29.1.5 and ChromeDriver 122.0.6261.130

Are you using Selenium Grid?

nope

Copy link

github-actions bot commented May 8, 2024

@rasjani, 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 diemol added C-py and removed needs-triaging labels May 8, 2024
@rasjani
Copy link
Author

rasjani commented May 8, 2024

With some help from @diemol -- i managed to to prevent the hanging by providing ChromeService with appropriate chromedriver path -- however, i sort of expected that setting SE_OFFLINE would prevent any selenium-manager hangups and fallback on chromedriver in the PATH .. Feel free to close if this is not deemed as a bug.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants