mirror of
https://github.com/httprunner/httprunner.git
synced 2026-09-06 16:07:45 +08:00
refactor: clean up function signatures in DriverSession and WDADriver for improved readability
This commit is contained in:
@@ -179,7 +179,6 @@ func (wd *WDADriver) DeleteSession() (err error) {
|
||||
wd.mjpegClient.CloseIdleConnections()
|
||||
}
|
||||
|
||||
// [[FBRoute DELETE:@""] respondWithTarget:self action:@selector(handleDeleteSession:)]
|
||||
wd.Session.client.CloseIdleConnections()
|
||||
return
|
||||
}
|
||||
@@ -625,7 +624,7 @@ func (wd *WDADriver) Drag(fromX, fromY, toX, toY float64, opts ...option.ActionO
|
||||
"toY": builtin.RoundToOneDecimal(toY),
|
||||
}
|
||||
option.MergeOptions(data, opts...)
|
||||
// wda 43 version
|
||||
// wda 50 version
|
||||
_, err = wd.Session.POST(data, "/wings/interaction/drag")
|
||||
return err
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user