change: rename screenshot filenames

This commit is contained in:
lilong.129
2023-04-27 21:43:22 +08:00
parent d0f3218c18
commit c0ea52d02a
3 changed files with 3 additions and 3 deletions

View File

@@ -340,7 +340,7 @@ func (dExt *DriverExt) DoAction(action MobileAction) error {
case ACTION_ScreenShot:
// take screenshot
log.Info().Msg("take screenshot for current screen")
_, err := dExt.TakeScreenShot(builtin.GenNameWithTimestamp("step_%d_screenshot"))
_, err := dExt.TakeScreenShot(builtin.GenNameWithTimestamp("%d_screenshot"))
return err
case ACTION_StartCamera:
return dExt.Driver.StartCamera()