Skip to content

Commit

Permalink
Update maestro-orchestra/src/main/java/maestro/orchestra/Orchestra.kt
Browse files Browse the repository at this point in the history
Co-authored-by: Amanjeet Singh <[email protected]>
  • Loading branch information
TheKohan and amanjeetsingh150 authored Jan 3, 2025
1 parent 59ee970 commit d9b4ed8
Showing 1 changed file with 5 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -758,7 +758,11 @@ class Orchestra(
maestro.takeScreenshot(file.sink(), false)
}else{
maestro.takePartialScreenshot(sink = file.sink(), bounds = cropped.element.bounds, compressed = false)
}
if (cropped == null){
maestro.takeScreenshot(file.sink(), false)
} else {
maestro.takePartialScreenshot(sink = file.sink(), bounds = cropped.element.bounds, compressed = false)
}

return false
}
Expand Down

0 comments on commit d9b4ed8

Please sign in to comment.