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

AttributeError: 'ChromeOptions' object has no attribute 'headless' #1646

Open
trueToastedCode opened this issue Nov 3, 2023 · 4 comments
Open

Comments

@trueToastedCode
Copy link

trueToastedCode commented Nov 3, 2023

AttributeError: 'ChromeOptions' object has no attribute 'headless'

driver = uc.Chrome(headless=False)
driver.get("https://www.google.com")

it works when using

options = ChromeOptions()
options.add_argument('--headless')
... options=options
@max32002
Copy link

max32002 commented Nov 3, 2023

downgrade selenium to 4.11.2.

@trueToastedCode
Copy link
Author

downgrade selenium to 4.11.2.

I think it actually works with this little change #1647.

@joeld1
Copy link

joeld1 commented Nov 20, 2023

It works for me if you use:

options = uc.ChromeOptions()
options.headless = False # or True
driver = uc.Chrome(options=options)

@chinthasaicharan
Copy link

downgrade selenium to 4.11.2.

not working

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

4 participants