mirror of
https://github.com/httprunner/httprunner.git
synced 2026-08-28 19:47:14 +08:00
fix: panic when close popup
This commit is contained in:
@@ -407,7 +407,7 @@ func (dExt *DriverExt) GetScreenResult(options ...ActionOption) (screenResult *S
|
|||||||
screenResult.UploadedURL = imageResult.URL
|
screenResult.UploadedURL = imageResult.URL
|
||||||
screenResult.Icons = imageResult.UIResult
|
screenResult.Icons = imageResult.UIResult
|
||||||
|
|
||||||
if actionOptions.ScreenShotWithClosePopups {
|
if actionOptions.ScreenShotWithClosePopups && imageResult.CPResult != nil {
|
||||||
screenResult.Popup = &PopupInfo{
|
screenResult.Popup = &PopupInfo{
|
||||||
Type: imageResult.CPResult.Type,
|
Type: imageResult.CPResult.Type,
|
||||||
Text: imageResult.CPResult.Text,
|
Text: imageResult.CPResult.Text,
|
||||||
|
|||||||
Reference in New Issue
Block a user