fix: WDA tests

This commit is contained in:
lilong.129
2025-02-17 22:02:12 +08:00
parent 3ae314d0ba
commit e985697227
12 changed files with 298 additions and 327 deletions

View File

@@ -2,6 +2,7 @@ package uixt
import (
"fmt"
"math"
"math/rand/v2"
"time"
@@ -43,8 +44,8 @@ func convertToAbsolutePoint(driver IDriver, x, y float64) (absX, absY float64, e
return
}
absX = float64(windowSize.Width) * x
absY = float64(windowSize.Height) * y
absX = math.Round(float64(windowSize.Width)*x*10) / 10
absY = math.Round(float64(windowSize.Height)*y*10) / 10
return
}