Skip to content

start browser fail on windows when running as administrator #247

@XIGUAjuice

Description

@XIGUAjuice

Hi, here is the simple piece of reproducible code

import zendriver as zd
import asyncio

newfeature = asyncio.get_event_loop().run_until_complete(zd.start(()))

When I am running powershell as administrator, this will fail and I will get

Exception:
                ---------------------
                Failed to connect to browser
                ---------------------
                One of the causes could be when you are running as root.
                In that case you need to pass no_sandbox=True

But when I am NOT running as administrator, it can works.

I have tried to start Chrome using subprocess.Popen, and connect with zendriver.start(host, port) as administrator, it works. So maybe there is some problems in zd.start()

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions