mirror of
https://github.com/httprunner/httprunner.git
synced 2026-06-07 16:59:34 +08:00
feat: 支持获取剪贴板
This commit is contained in:
@@ -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")
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user