How to resize/maximize Firefox window during launching Selenium Remote Control?

chobo2 picture chobo2 · Oct 5, 2009 · Viewed 50k times · Source

I am using Selenium Remote Control . During executing the tests the actual Firefox window is so small. I want it full screen so I can see what is happening. How can I maximize the browser screen?

Answer

Dave Hunt picture Dave Hunt · Oct 6, 2009

Try the windowMaximize command:

selenium.windowMaximize();

You can also set a specific width and height using the following command:

selenium.getEval("window.resizeTo(X, Y); window.moveTo(0,0);")

Where X is the width and Y is the height.