Skip to content

[Bug]: light_mode=False not working #1631

@thibaud57

Description

@thibaud57

crawl4ai version

latest

Expected Behavior

light_mode=False navigator is dark mode

Current Behavior

Hello i'm running wth config
config = BrowserConfig(
headless=False,
light_mode=False,
enable_stealth=True,
headers={
"Accept-Language": "fr-FR,fr;q=0.9",
"Accept": "text/html,application/xhtml+xml,application/xml;q=0.9,image/webp,/;q=0.8",
},
viewport_width=1920,
viewport_height=1080,
)

        light_mode=False,

I can see the browser light but when i open console it switch black

other params run_config = CrawlerRunConfig(
cache_mode=CacheMode.DISABLED,
magic=True,
simulate_user=True,
override_navigator=True,
page_timeout=60000,
wait_for="css:.pIav2d",
delay_before_return_html=3.0,

Is this reproducible?

Yes

Inputs Causing the Bug

Steps to Reproduce

Code snippets

OS

windows

Python version

latest

Browser

No response

Browser version

No response

Error logs & Screenshots (if applicable)

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    🐞 BugSomething isn't working🩺 Needs TriageNeeds attention of maintainers

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions