feat: implement video crawler

This commit is contained in:
lilong.129
2023-04-28 21:48:59 +08:00
parent 8498fe10e3
commit 68dc545f35
7 changed files with 208 additions and 46 deletions

View File

@@ -355,9 +355,12 @@ func TestDriver_IsAppInForeground(t *testing.T) {
err := driverExt.Driver.AppLaunch("com.android.settings")
checkErr(t, err)
foreApp, err := driverExt.Driver.GetForegroundApp()
app, err := driverExt.Driver.GetForegroundApp()
checkErr(t, err)
if foreApp != "com.android.settings" {
if app.BundleId != "com.android.settings" {
t.FailNow()
}
if app.Activity != ".Settings" {
t.FailNow()
}