How to access cdp.Driver.client
lorico opened this issue · 1 comments
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 !
Hey,
you can extend the existing one and register it as a custom driver.