mirror of
https://github.com/httprunner/httprunner.git
synced 2026-08-15 18:44:43 +08:00
15 lines
386 B
Go
15 lines
386 B
Go
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
|
|
}
|
|
}
|