feat: ApplyOffset for tap xy

This commit is contained in:
lilong.129
2025-02-19 10:55:56 +08:00
parent 8bccf709a7
commit 1b18976620
7 changed files with 33 additions and 14 deletions

View File

@@ -106,13 +106,11 @@ func (s *StubIOSDriver) Source(srcOpt ...option.SourceOption) (string, error) {
func (s *StubIOSDriver) OpenUrl(urlStr string, options ...option.ActionOption) (err error) {
targetUrl := fmt.Sprintf("/openURL?url=%s", url.QueryEscape(urlStr))
fmt.Sprintln(targetUrl)
resp, err := s.Session.GET(targetUrl)
_, err = s.Session.GET(targetUrl)
if err != nil {
log.Error().Err(err).Msg("get source err")
return nil
}
fmt.Sprintln(resp)
return nil
}