change: remove unused methods

This commit is contained in:
lilong.129
2025-02-11 15:57:27 +08:00
parent 7a585c5da4
commit 040e2fa06f
13 changed files with 45 additions and 75 deletions

View File

@@ -10,7 +10,6 @@ import (
"code.byted.org/iesqa/ghdc"
"github.com/rs/zerolog/log"
"github.com/httprunner/httprunner/v5/pkg/uixt/ai"
"github.com/httprunner/httprunner/v5/pkg/uixt/option"
"github.com/httprunner/httprunner/v5/pkg/uixt/types"
)
@@ -81,10 +80,6 @@ func (hd *HDCDriver) WindowSize() (size types.Size, err error) {
return size, err
}
func (hd *HDCDriver) Screen() (ai.Screen, error) {
return ai.Screen{}, types.ErrDriverNotImplemented
}
func (hd *HDCDriver) Scale() (float64, error) {
return 1, nil
}
@@ -241,7 +236,7 @@ func (hd *HDCDriver) PressHarmonyKeyCode(keyCode ghdc.KeyCode) (err error) {
return hd.uiDriver.PressKey(keyCode)
}
func (hd *HDCDriver) Screenshot() (*bytes.Buffer, error) {
func (hd *HDCDriver) ScreenShot() (*bytes.Buffer, error) {
tempDir := os.TempDir()
screenshotPath := fmt.Sprintf("%s/screenshot_%d.png", tempDir, time.Now().Unix())
err := hd.uiDriver.Screenshot(screenshotPath)
@@ -282,11 +277,7 @@ func (hd *HDCDriver) StopCaptureLog() (result interface{}, err error) {
return hd.points, nil
}
func (hd *HDCDriver) GetDriverResults() []*DriverRequests {
return nil
}
func (hd *HDCDriver) RecordScreen(folderPath string, duration time.Duration) (videoPath string, err error) {
func (hd *HDCDriver) ScreenRecord(folderPath string, duration time.Duration) (videoPath string, err error) {
return "", nil
}