Yep, I tested the SetViewPortSize within scripts which works great but if connecting to a remote server which is already going to be configured to have a screen resolution size, it would be nice if I could just set a viewport size globally in Katalon for select browser (local testing) same as remote, instead of having to make sure SetViewPortSize is added to each script.
I did look at Desired Capabilities, but I could not get anything to size browser window following any Katalon docs on WebUI Viewport sizing, I tried various items/values but nothing was working for me.
1.) Navigate to Project > Settings > Desired Capabilities > WebUI > Chrome:
2.) Click the Add button, and set Name = args, Type = List
3.) Under the Value column, click the ellipses.
4.) In the List Property Builder, click the Add button, then set Type = String, Value = window-size=x,y
5.) Set x,y in the value above to your desired dimensions, for example 1920,1080:
Did we ever figure out what the correct arguments are for Safari? This is really hosing my scripts having such a small Safari window open up. Also, my arguments are the exact same for Firefox as Chrome. However, Firefox does not seem to be respecting them. I guess the arguments are the same for headless Chrome and Firefox, as well?
For the most part, each browser will have it’s own set of arguments to control the various settings. Chrome and FF tend to share quite a few, but not all of them. Browsers like Edge, Safarti, etc. are going to be quite different. I’m really only qualified to speak on the Chrome arguments, so you’ll have to do some footwork to find settings for the other browsers.
my local system resolution is 1920 * 1080 windows 10 but remote server is of windows 7 with 1360* 768. Some test cases fails on running it. Tried above mentioned steps in version 7.2.9 still remains in same resolution and fails.