Browser zoom to fit

I am trying to make a simple automation module for capturing a screen shot from a website page.

This is my current proof of concept Test2.xaml (17.6 KB)

Does anybody know a more efficient way of doing this? I was going to try and add logic to zoom in on the windows before the screen shot, but when trying to use location and math to do this I had unexpected results on my second monitor (Vertical monitor). The idea was to zoom in as much as possible while the image was still fully visible then screenshot it.

The current automation works but feels hacky to me.

I made an update to my automation. I still wish this was driven by math instead of guess and check. Test2.xaml (22.2 KB)

This one has the zoom function.