feat: add GetForegroundApp for android

This commit is contained in:
lilong.129
2023-04-28 16:59:02 +08:00
parent 6067d5ddbd
commit 8498fe10e3
5 changed files with 39 additions and 20 deletions

View File

@@ -623,6 +623,8 @@ type WebDriver interface {
GetLastLaunchedApp() string
// AssertAppForeground returns nil if the given package is in foreground
AssertAppForeground(packageName string) error
// GetForegroundApp returns current foreground app package name
GetForegroundApp() (string, error)
// StartCamera Starts a new camera for recording
StartCamera() error