Submit and vote on feature ideas.

Welcome to the new Parasoft forums! We hope you will enjoy the site and try out some of the new features, like sharing an idea you may have for one of our products or following a category.

Resize Chrome Browser

mharps
mharps 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

  • jakubiak
    jakubiak Posts: 795 admin

    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);
    }
    
  • mharps
    mharps Posts: 4

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