-
-
Notifications
You must be signed in to change notification settings - Fork 1.5k
#2602 Ref: Windows Custom Chrome Binary Path still failing to get Version #2609
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
Conversation
|
Already resolved in |
|
@mdmintz Not working Line 240 243, these lines execute correctly but in Windows it will open the chrome browser instead of getting the version info via terminal. |
|
That method is working for me in Windows on version import os
from seleniumbase.core import detect_b_ver
path = "C:\\Program Files (x86)\\Google\\Chrome\\Application\\chrome.exe"
print(os.path.exists(path))
print(detect_b_ver.get_browser_version_from_binary(path))Output: If something isn't working for you, you need to provide a minimal reproducible example, with clear steps showing the code that you used to see the outcome that you had. |
|
Whenever a system path's chrome is being used, it is working |
|
I copied import os
from seleniumbase.core import detect_b_ver
path = "C:\\tmp\\chrome.exe"
print(os.path.exists(path))
print(detect_b_ver.get_browser_version_from_binary(path))Output: |
|
@mdmintz I think this is a chrome for testing only issue. |
|
I also tried with a chrome-for-testing Chrome, and there was no extra browser that spun up for me. SeleniumBase is also for regular Chrome browsers (not chrome-for-testing ones, as that won't work in UC Mode). |
|
@mdmintz seleniumbase does work for chrome for testing, cloudflare turnstile is bypassed as well |
|
That's good to hear. I still cannot reproduce your issue with the extra browser. Stop creating multiple pull requests for it. |
|
That's good that it works. The PRs are still unnecessary. |
|
@mdmintz I will write a simple Python script, do check out if that works on your Windows machine. |
|
@mdmintz Install the necessary dependencies if required, Run this code and send me the output, please. |
|
Thank you. That was the real issue: Getting the Chrome-for-Testing version on Windows from the binary_location, which was not related to absolute or relative paths. Fixed in Also, the |
|
@mdmintz Thanks for the latest commit, should be fixed now. |
|
Relative paths are working fine for me if the path exists. Also, not going to bother with maintaining support on Windows 7 or older for this specific case. If people really need to use Windows 7, they can put the browser on their system path. If the path doesn't exist on Windows, then the method will return |
|
Also try |
|
@mdmintz thanks will check and test the latest commit |
|
@mdmintz Working fine. |




Explained in #2602