Resize Chrome Browser

mharpsmharps Posts: 4

Hi,

I am new to Parasoft SOAtest.
Is there a way to resize a Chrome Browser window after SOAtest has started the browser?
I don't want to maximise the window, I want to reduce the window size.

Tnx in advance for your help.

Comments

  • jakubiakjakubiak Posts: 269 ✭✭✭

    It depends on which browser you are using. You could add an "Execute JavaScript" action to your scenario after the initial "Navigate" action and use JavaScript like "window.resizeTo()" to change the window size, but most browsers don't actually allow you to do that anymore. It worked for me in Internet Explorer but did not work for me in Chrome.

    Here is the code I used in my "Execute JavaScript" action:

    function resize() {
        window.resizeTo(500, 500);
    }
    
  • mharpsmharps Posts: 4

    Thanks for your reply. Tried your suggestion and it works in IE for me as well.

Sign In or Register to comment.