Page 1 of 1

maximizing browser

Posted: Mon May 02, 2011 4:09 pm
by mlabrie
Hello,

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!

Thanks,

Michel

Re: maximizing browser

Posted: Tue May 03, 2011 9:03 am
by Support Team
Hi,

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.

Regards,
Peter
Ranorex Team