How do you set up a test to launch a browser maximized?
1 Answer, 1 is accepted
0
Anthony
Telerik team
answered on 11 May 2011, 06:42 PM
Hello Tom,
This can be done by adding a coded step (that process is described here). Add the following line of code to that step:
ActiveBrowser.Window.Maximize();
Then simply drag that step to the top of the test. I also recommend adding a short Execution Delay (described here) so the coded step does not attempt to maximize the browser before it actually loads.
If that step does not compile at first, you will need to add the System.Windows.Forms reference to the Project:
1. Click the Project tab.
2. Click the Show button in the Setting ribbon.
3. Click Script Options in the left column of User Settings.
4. Click "Add Reference."
5. Browse to the following folder: