close popups before swipeToTapApp

This commit is contained in:
buyuxiang
2023-10-24 17:32:58 +08:00
parent 41f705c0d9
commit 79c91637db
3 changed files with 7 additions and 2 deletions
+1 -1
View File
@@ -409,7 +409,7 @@ func (dExt *DriverExt) GetScreenResult(options ...ActionOption) (screenResult *S
screenResult.UploadedURL = imageResult.URL
screenResult.Icons = imageResult.UIResult
if actionOptions.ScreenShotWithClosePopups {
if actionOptions.ScreenShotWithClosePopups && imageResult.CPResult != nil {
screenResult.Popup = &PopupInfo{
Type: imageResult.CPResult.Type,
Text: imageResult.CPResult.Text,