feat: add adb screen record

This commit is contained in:
lilong.129
2025-03-06 16:57:51 +08:00
parent 5b503a4394
commit cc81c00a82
14 changed files with 159 additions and 43 deletions

View File

@@ -195,7 +195,7 @@ func TestDriver_ADB_ForegroundInfo(t *testing.T) {
func TestDriver_ADB_ScreenRecord(t *testing.T) {
driver := setupADBDriverExt(t)
path, err := driver.ScreenRecord(5 * time.Second)
path, err := driver.ScreenRecord(option.WithScreenRecordDuation(5))
assert.Nil(t, err)
defer os.Remove(path)
t.Log(path)