refactor: cache window size & scale in driver

This commit is contained in:
lilong.129
2025-02-14 10:35:22 +08:00
parent 6c3f21134b
commit c8d776009c
7 changed files with 33 additions and 27 deletions

View File

@@ -54,7 +54,6 @@ func NewShootsIOSDriver(device *uixt.IOSDevice) (driver *ShootsIOSDriver, err er
driver = &ShootsIOSDriver{
WDADriver: wdaDriver.(*uixt.WDADriver),
}
driver.device = device
driver.bightInsightPrefix = fmt.Sprintf("http://%s:%d", host, localShootsPort)
driver.serverPrefix = fmt.Sprintf("http://%s:%d", host, localServerPort)
driver.timeout = timeout
@@ -68,7 +67,6 @@ type ShootsIOSDriver struct {
bightInsightPrefix string
serverPrefix string
timeout time.Duration
device *uixt.IOSDevice
}
func (s *ShootsIOSDriver) Source(srcOpt ...option.SourceOption) (string, error) {