Skip to content

How to access cdp.Driver.client #755

@lorico

Description

@lorico

Hi!
I would need to access the "cdp.Driver.client" object, because I would like to modify the "SetDownloadBehavior" of the cdp chrome driver (in fact, I would like to be able to modify the location where files gets downloaded, for that I need to "SetDownloadPath":
https://pkg.go.dev/github.com/mafredri/cdp?utm_source=godoc#Page.SetDownloadBehavior )

But this object is private (client).
Is there a way for me to be able to manipulate the client, throught the context of whatever else so I could modify this SetDownloadPath by any mean without rebuilding your whole project ?

Thanks a lot in advance for any tip! And congratulations again, amazing project !

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions