diff --git a/tab.go b/tab.go index e0a18ee..e880c14 100644 --- a/tab.go +++ b/tab.go @@ -36,6 +36,7 @@ import ( "github.com/wirepair/gcd" "github.com/wirepair/gcd/gcdapi" + "github.com/wirepair/gcd/gcdmessage" ) // https://chromium.googlesource.com/chromium/src/+/master/third_party/WebKit/Source/core/inspector/InspectorNetworkAgent.cpp#96 @@ -242,6 +243,10 @@ func (t *Tab) SetStabilityTime(stableAfter time.Duration) { t.stableAfter = stableAfter } +func (t *Tab) SetDownloadBehavior(behavior, downloadPath string) (*gcdmessage.ChromeResponse, error) { + return t.Page.SetDownloadBehavior(behavior, downloadPath) +} + func (t *Tab) setIsNavigating(set bool) { t.isNavigatingFlag.Store(set) }