Maximizing Browser Window using Selenium Rc and Web Driver

When ever we are opening Web Browser using Selenium RC and Web Driver, it will open in Resized state. But that will not give complete view of the Browser conten. In order to maximize the the window we need to use two different methods in RC and Web Driver.

Maximizing the Browser Window using RC

Once you started the Browser use the following Selenium RC command to maximize the Browser Window
(browser is the object of my DefaultSelenium Class)

browser.windowMaximize();

Maximizing the Browser Window using Web Driver:

It is not as same as RC in Web Driver. We need to use the following command

( driver is the Object of Respective Browser Driver Class )

driver.manage().window().maximize();