I need to resize the browser as 300x400 during executing the Selenium automated tests. How can I resize the browser window in Selenium WebDriver (aka, Selenium 2) with Java?
[Note: It needs to resize the browser window for testing Responsive Web Design (RWD)]