fix: screen record duration

This commit is contained in:
lilong.129
2025-03-06 17:58:16 +08:00
parent 79e0323471
commit e8025f9e65
3 changed files with 6 additions and 2 deletions

View File

@@ -792,6 +792,9 @@ func (ad *ADBDriver) ScreenRecord(opts ...option.ActionOption) (videoPath string
}
duration := options.ScreenRecordDuration
if duration == 0 {
duration = options.Duration
}
audioOn := options.ScreenRecordWithAudio
// get android system version