refactor: device Install interface

This commit is contained in:
lilong.129
2024-10-23 15:41:27 +08:00
parent 4b568dac01
commit b8083cd03e
10 changed files with 51 additions and 29 deletions

View File

@@ -491,7 +491,7 @@ type IDevice interface {
StartPcap() error
StopPcap() string
Install(appPath string, opts *InstallOptions) error
Install(appPath string, options ...InstallOption) error
Uninstall(packageName string) error
GetPackageInfo(packageName string) (AppInfo, error)
@@ -620,11 +620,9 @@ type IWebDriver interface {
Source(srcOpt ...SourceOption) (string, error)
LoginNoneUI(packageName, phoneNumber string, captcha string) error
LogoutNoneUI(packageName string) error
TapByText(text string, options ...ActionOption) error
TapByTexts(actions ...TapTextAction) error
// AccessibleSource Return application elements accessibility tree