How can we maximize and minimize the browser window in Selenium?

devquora
devquora

Posted On: Mar 18, 2020

 

The maximum command can be used in the Java Selenium to maximize the browser window in the initial phases.

driver.manage().window().maximize();
For minimizing the browser, we can use the setPosition command and set a new point to minimize the window in the browser.
driver.manage().window().setPosition(new Point(0, -1000));

    Related Questions

    Please Login or Register to leave a response.

    Related Questions

    Selenium Interview Questions

    What Evaluation can Selenium Do?

    Selenium Could be Utilized for the purposeful, Regression, load testing of the Internet-based program. The Automation To..

    Selenium Interview Questions

    Just how much does Selenium License cost per Customer Device?

    Selenium is open-source software, released under the Apache 2.0 license and can be downloaded and used without charge...

    Selenium Interview Questions

    Where to obtain Selenium ?

    Selenium Can be Downloaded and Installed for free-form Seleniumhq.org..