简体   繁体   中英

How to increase screenshot quality in the appium webdriver for IOS?

im using element.screenshot_as_png() On iOS quality is so bad: 在此处输入图像描述

Do screenshot manually has better quality:

在此处输入图像描述

On Android this element screenshoted pretty good by this command: 在此处输入图像描述

I tried many ways, including other screenshot formats, base64 decoding, etc.

If anyone can help please tell me

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.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM