refactor: assert device UI

This commit is contained in:
lilong.129
2023-06-07 14:55:24 +08:00
parent c6fd34129b
commit fa74f4dd63
4 changed files with 94 additions and 74 deletions

View File

@@ -495,6 +495,8 @@ type WebDriver interface {
AssertAppForeground(packageName string) error
// GetForegroundApp returns current foreground app package name and activity name
GetForegroundApp() (app AppInfo, err error)
// AssertUI returns nil if the given package and activity are in foreground
AssertUI(packageName, activityType string) error
// StartCamera Starts a new camera for recording
StartCamera() error