Join the social network of Tech Nerds, increase skill rank, get work, manage projects...
 
  • How to maximize window in selenium

    • 0
    • 1
    • 0
    • 0
    • 0
    • 0
    • 0
    • 0
    • 557
    Comment on it

    Selenium whenever launches a browser, it is not in maximize form. To maximize the window use the following code:

    1. driver.manage().window().maximize();
    2.  
    3. Eg:
    4.  
    5. WebDriver driver = new FirefoxDriver();
    6. driver.navigate().to("http://www.hdfcbank.com/");
    7. driver.manage().window().maximize();

 0 Comment(s)

Sign In
                           OR                           
                           OR                           
Register

Sign up using

                           OR                           
Forgot Password
Reset Password
Fill out the form below and reset your password: