mirror of
https://github.com/httprunner/httprunner.git
synced 2026-09-05 07:26:55 +08:00
fix: 修复浏览器驱动的一些问题
This commit is contained in:
@@ -17,7 +17,7 @@ type BrowserDevice struct {
|
||||
func NewBrowserDevice(opts ...option.BrowserDeviceOption) (device *BrowserDevice, err error) {
|
||||
options := option.NewBrowserDeviceOptions(opts...)
|
||||
if options.BrowserID == "" {
|
||||
browserInfo, err := CreateBrowser(3600)
|
||||
browserInfo, err := CreateBrowser(3600, options.Width, options.Height)
|
||||
if err != nil {
|
||||
log.Error().Err(err).Msg("failed to create browser")
|
||||
return nil, err
|
||||
|
||||
Reference in New Issue
Block a user