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
+1 -1
View File
@@ -1 +1 @@
v5.0.0-beta-2409291526 v5.0.0-beta-2410012118
+2
View File
@@ -1,6 +1,7 @@
package uixt package uixt
import ( import (
"context"
_ "image/gif" _ "image/gif"
_ "image/png" _ "image/png"
@@ -13,6 +14,7 @@ import (
) )
type DriverExt struct { type DriverExt struct {
Ctx context.Context
Device IDevice Device IDevice
Driver IWebDriver Driver IWebDriver
ImageService IImageService // used to extract image data ImageService IImageService // used to extract image data
+2
View File
@@ -481,6 +481,8 @@ type IDevice interface {
Init() error // init android device Init() error // init android device
UUID() string // ios udid or android serial UUID() string // ios udid or android serial
LogEnabled() bool LogEnabled() bool
// TODO: add ctx to NewDriver
NewDriver(...DriverOption) (driverExt *DriverExt, err error) NewDriver(...DriverOption) (driverExt *DriverExt, err error)
StartPerf() error StartPerf() error