feat: 支持获取剪贴板

This commit is contained in:
余泓铮
2025-07-24 17:26:25 +08:00
parent 9add5df1b2
commit 8b20fceb63
7 changed files with 81 additions and 17 deletions

View File

@@ -365,7 +365,6 @@ func (wd *BrowserDriver) Input(text string, option ...option.ActionOption) (err
// Source Return application elements tree
func (wd *BrowserDriver) Source(srcOpt ...option.SourceOption) (string, error) {
result, err := wd.CustomeGet(wd.concatURL(wd.Session.ID, "stub/source"))
if err != nil {
return "", err
}
@@ -751,3 +750,7 @@ func (wd *BrowserDriver) CustomeGet(urlStr string) (response *WebAgentResponse,
return &webResp, err
}
func (wd *BrowserDriver) GetPasteboard() (content string, err error) {
return "", errors.New("not implemented")
}