-1

I use

driver = new FirefoxDriver(); 

to launch a firefox page. And, selenium ChromeDriver Service for the chrome page.

However, the window opens maximized at all times. How do I make the window open in the same dimensions as it was while closing? i.e. in the size is restored properly.

Divya Dev
  • 125
  • 9

1 Answers1

0

You can set a custom window size, although without more information I'm not sure if this will or won't fulfil your requirements:

driver.manage().window().setSize(new Dimension(800,600));
stuartmccoll
  • 188
  • 1
  • 11