feat: 支持获取剪贴板

This commit is contained in:
余泓铮
2025-07-24 17:06:10 +08:00
parent 2c74f9b060
commit 9add5df1b2
5 changed files with 77 additions and 4 deletions

View File

@@ -321,3 +321,10 @@ func TestDriver_UIA2_Input(t *testing.T) {
err = driver.Input("123\n")
assert.Nil(t, err)
}
func TestDriver_ADB_GetPasteboard(t *testing.T) {
driver := setupADBDriverExt(t)
pasteboard, err := driver.IDriver.(*ADBDriver).GetPasteboard()
assert.Nil(t, err)
t.Log(pasteboard)
}