Skip to content

Firefox does not open in headless mode with headless option #3

Open
@ctrl-alt-deliberate

Description

@ctrl-alt-deliberate

The following code will open a Firefox window instead of executing in the background.

import asyncio
from selenium_async import use_browser, Options

async def browse():
    async with use_browser(options=Options(headless=True)) as driver:
        driver.get('https://google.com')

asyncio.run(browse())

In fact, headless=True is the default, but a window will open by default as well.
See link for headless mode changes.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions