appium/appium-inspector

feature request: increase screenshot size

martamedovova-ext91522 opened this issue · 7 comments

Current Behavior

Hello,

the tablet screen display is very small for portrait and landscape mode (especially for iPad 12.9" Pro)
Hard to see the icons or messages - everything.

image

Suggested Solution

Make a larger tablet screen display or add the zoom function

Can you do it?

Thank you :)

Additional Information

No response

Your screenshot is from an older application version. Please try with the latest version (2023.11.1).

But I do think it should be possible to increase the size of the screenshot part in this case. Right now I believe the screenshot height is limited by the application window height, and the screenshot width is limited to 500px - both conditions must be true. In your case, the application window is large enough that the 500px width limit causes a significant limitation.

I cannot increase the size at the Inspector, there is no zoom.

I will try the new version, hope it is better and more dynamic :-)

I agree with Marta. The screen is too small especially in landscape mode. I think a better way would be to use a floating window (with only device) or enabling resize of panels inside the application.

Same situation here, we are in the process of automating a desktop application through appium, and the screenshot display with element handles overlay is way too small to be useable.
A floating window with only the device would probably be the most usefull in our case.
Being able to change the relative sizes of the different sections would also be helpful.
Reorganizing the panels could also help.

Any pointers to help me to start working on these modifications?

I did start looking into this and initially just removed the 500px hard limit for screenshot width, so it continued scaling further with the window size. But right now this requires additionally manually refreshing the source/screenshot, which I would like to resolve.

Pointer-wise I'm not really sure; the current resizing approach relies a lot on CSS adjustments, which might be difficult to combine with features like adjustable section widths. But the main resizing method for the screenshot is in Inspector.js.

Also note that some of the other suggestions have already been mentioned in #766.

Inspector version 2024.2.1 increases the screenshot size for larger Inspector window sizes, and also adds the zoom functionality.
Closing this for now - the other suggestions can be covered in #766.