change: add ctx to driver

This commit is contained in:
lilong.129
2024-10-01 21:18:50 +08:00
parent 7c92f23bf4
commit a4d45bbaa3
3 changed files with 5 additions and 1 deletions

View File

@@ -1 +1 @@
v5.0.0-beta-2409291526
v5.0.0-beta-2410012118

View File

@@ -1,6 +1,7 @@
package uixt
import (
"context"
_ "image/gif"
_ "image/png"
@@ -13,6 +14,7 @@ import (
)
type DriverExt struct {
Ctx context.Context
Device IDevice
Driver IWebDriver
ImageService IImageService // used to extract image data

View File

@@ -481,6 +481,8 @@ type IDevice interface {
Init() error // init android device
UUID() string // ios udid or android serial
LogEnabled() bool
// TODO: add ctx to NewDriver
NewDriver(...DriverOption) (driverExt *DriverExt, err error)
StartPerf() error