Skip to content

Conversation

@xbhel
Copy link
Contributor

@xbhel xbhel commented Apr 14, 2025

Summary:
This PR fixes a TypeError caused by incorrect usage of the get method on the ChromiumOptions.arguments object, which is a list, not a dict. The condition attempting to call co.arguments.get("--headless=new") would raise an exception. This has been corrected by replacing it with the appropriate list membership check.

Changes:

Replaced the invalid method call co.arguments.get("--headless=new") with "--headless=new" not in co.arguments in new_tempemail.py to correctly check for argument presence in the list.

Related Issue:

Fixes #583

@yeongpin yeongpin merged commit ab9202f into yeongpin:main Apr 15, 2025
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

Successfully merging this pull request may close these issues.

[讨论]: ❌ email.browser_start_error: 'list' object has no attribute 'get',

3 participants