Add UseLocalOnly
flag to connection options in Playwright logic
This commit is contained in:
@@ -125,6 +125,9 @@ func NewPlayWrightBrowser(opts ...PlayWrightBrowserOptions) (Browser, error) {
|
|||||||
if o.DontLaunchOnConnectFailure {
|
if o.DontLaunchOnConnectFailure {
|
||||||
opt.DontLaunchOnConnectFailure = true
|
opt.DontLaunchOnConnectFailure = true
|
||||||
}
|
}
|
||||||
|
if o.UseLocalOnly {
|
||||||
|
opt.UseLocalOnly = true
|
||||||
|
}
|
||||||
opt.ShowBrowser = o.ShowBrowser
|
opt.ShowBrowser = o.ShowBrowser
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user