maximizing browser

Ranorex Studio, Spy, Recorder, and Driver.
Posts: 2
Joined: Mon May 02, 2011 3:20 pm

maximizing browser

Post by mlabrie » Mon May 02, 2011 4:09 pm


I am a new user of Ranorex, and a new member of this Forum.
We have 2 development licences and 2 floating run time licenses. So the testcases we record, will need to run on different machines... One of our issue is that sometimes, a browser will not open maximised.

Of course, I can record the click on the maximised button for one test in particular. And it worked.
But I would like to systematically maximise browsers when they open...

So my question is:
- In some automation application, we have an option in the setting, that permit us to always maximise the browser, I didn't find this setting in Ranorex 3.1... By any chance, is there such a setting in Ranorex?

If not, can you give me a snippet of C# code, that will always work, regardless of the repository. I woul like to make it a function, that I would call systematically everytime we start a browser!



User avatar
Support Team
Site Admin
Site Admin
Posts: 12145
Joined: Fri Jul 07, 2006 4:30 pm
Location: Houston, Texas, USA

Re: maximizing browser

Post by Support Team » Tue May 03, 2011 9:03 am


You can use the "InvokeAction" action to maximize your Browser. Therefore just add the IE or Firefox form to your repository and drag and drop this repo item to the action-grid of your recording. Then you can select the maximize method if you add an "InvokeAction" action.

Ranorex Team