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

Error message when using headless mode: could not detect version_main.therefore, we are assuming it is chrome 108 or higher #2143

Open
Jxzcode opened this issue Feb 20, 2025 · 0 comments

Comments

@Jxzcode
Copy link

Jxzcode commented Feb 20, 2025

The code is as follows

chrome_options = uc.ChromeOptions()
chrome_options.add_argument('--headless')
driver = uc.Chrome(
options=chrome_options,
driver_executable_path="D:\chromedriver_win\chromedriver.exe",
browser_executable_path="C:\Program Files\Google\Chrome\Application\chrome.exe",
)

or

driver = uc.Chrome(
headless=True,
driver_executable_path="D:\chromedriver_win\chromedriver.exe",
browser_executable_path="C:\Program Files\Google\Chrome\Application\chrome.exe",
)

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

No branches or pull requests

1 participant