How to Maximize a firefox browser window using selenium webdriver

How to Maximize a firefox browser window using selenium webdriver?

Maximizing Browser window using Selenium webdriver script

package selenium_examples;


import org.openqa.selenium.WebDriver;
import org.openqa.selenium.firefox.FirefoxDriver;

public class Test {

public static void main(String[] args) {


WebDriver driver = new FirefoxDriver();
driver.get("http://google.com");
driver.manage().window().maximize();
                driver.close();
}

}

Above script maximizes browser window and closes the browser.

No comments:

Related Posts Plugin for WordPress, Blogger...

Fun and Knowledge