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

@@ -394,6 +394,13 @@ func (wd *wdaDriver) GetForegroundApp() (app AppInfo, err error) {
"GetForegroundApp not implemented for ios")
}
func (wd *wdaDriver) AssertUI(bundleId, viewControllerType string) error {
log.Debug().Str("bundleId", bundleId).
Str("viewControllerType", viewControllerType).
Msg("ios view controller assertion not implemented, skip")
return nil
}
func (wd *wdaDriver) Tap(x, y int, options ...ActionOption) error {
return wd.TapFloat(float64(x), float64(y), options...)
}