change: remove unused code

This commit is contained in:
lilong.129
2025-05-20 18:03:54 +08:00
parent 83434cca1e
commit 037e69315e
6 changed files with 28 additions and 341 deletions
+1 -5
View File
@@ -119,15 +119,11 @@ func (dExt *XTDriver) AIAssert(assertion string, opts ...option.ActionOption) er
return errors.New("LLM service is not initialized")
}
compressedBufSource, err := getScreenShotBuffer(dExt.IDriver)
screenShotBase64, err := getScreenShotBufferBase64(dExt.IDriver)
if err != nil {
return err
}
// convert buffer to base64 string
screenShotBase64 := "data:image/jpeg;base64," +
base64.StdEncoding.EncodeToString(compressedBufSource.Bytes())
// get window size
size, err := dExt.IDriver.WindowSize()
if err != nil {