mirror of
https://github.com/httprunner/httprunner.git
synced 2026-05-15 20:38:44 +08:00
refactor: move browser device options to pkg/uixt/option pkg
This commit is contained in:
14
pkg/uixt/option/browser.go
Normal file
14
pkg/uixt/option/browser.go
Normal file
@@ -0,0 +1,14 @@
|
||||
package option
|
||||
|
||||
type BrowserDeviceOptions struct {
|
||||
BrowserID string `json:"browser_id,omitempty" yaml:"browser_id,omitempty"`
|
||||
LogOn bool `json:"log_on,omitempty" yaml:"log_on,omitempty"`
|
||||
}
|
||||
|
||||
type BrowserDeviceOption func(*BrowserDeviceOptions)
|
||||
|
||||
func WithBrowserID(serial string) BrowserDeviceOption {
|
||||
return func(device *BrowserDeviceOptions) {
|
||||
device.BrowserID = serial
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user