I don't know if that would help for Python automation with that specific method but you can try adding {"screenshotQuality": 0}
to your driver capabilities. Note that setting to the highest quality(0) can lead to OOM crashes when doing the screenshot.
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.