mirror of
https://github.com/httprunner/httprunner.git
synced 2026-06-08 01:09:44 +08:00
change: upgrade gwda to 0.4.0
This commit is contained in:
@@ -501,7 +501,7 @@ func (w *wdaClient) screenShot() error {
|
||||
if err := builtin.EnsureFolderExists(screenshotsDir); err != nil {
|
||||
return errors.Wrap(err, "create screenshots failed")
|
||||
}
|
||||
path := filepath.Join(screenshotsDir, fmt.Sprintf("%d", time.Now().UnixMilli())+"."+format)
|
||||
path := filepath.Join(screenshotsDir, fmt.Sprintf("%d", time.Now().Unix())+"."+format)
|
||||
file, err := os.Create(path)
|
||||
if err != nil {
|
||||
return errors.Wrap(err, "create screenshot image file failed")
|
||||
|
||||
Reference in New Issue
Block a user