How To Maximize Window in Selenium Webdriver Using Java?

How to maximize Browser Window in Selenium using java


Maximize() Method:
To maximize a browser window, we need to call the maximize() method of the Window interface of the driver class. Add the second line right below where you define an instance of FirefoxDriver.

driver = new FirefoxDriver();

Selenium code for maximize the browser window 

package New;
import org.openqa.selenium.By;
import org.openqa.selenium.WebDriver;

public class AutomationTesting
 public static void main(String[] args
{            System.setProperty("","D:\\Sandeep\\Soft\\chromedriver.exe");
WebDriver driver= new ChromeDriver();

Hope!!! The above code " how to maximize the browser Window in selenium helpful for you ..
QA acharya

Tags: how to maximize the browser window in selenium  , how to maximize the browser window in selenium webdriver , How to maximize the window in selenium .
Related Post: 

How to maximize window in selenium