mirror of
https://github.com/httprunner/httprunner.git
synced 2026-05-27 11:20:08 +08:00
change: NewBrowserDeviceOptions
This commit is contained in:
@@ -15,11 +15,7 @@ type BrowserDevice struct {
|
||||
}
|
||||
|
||||
func NewBrowserDevice(opts ...option.BrowserDeviceOption) (device *BrowserDevice, err error) {
|
||||
options := &option.BrowserDeviceOptions{}
|
||||
for _, option := range opts {
|
||||
option(options)
|
||||
}
|
||||
|
||||
options := option.NewBrowserDeviceOptions(opts...)
|
||||
if options.BrowserID == "" {
|
||||
browserInfo, err := CreateBrowser(3600)
|
||||
if err != nil {
|
||||
|
||||
Reference in New Issue
Block a user