Sometimes we need to maximize our browser window at the time of automation. Selenium webdriver have given us a nice command to execute such instruction.
We have a webdriver object named “driver” and we need to make our browser window maximize. The command will be
driver.manage().window().maximize(); //Java code
Thanks .......code works
ReplyDeleteThanks for simple step to solve to problem
ReplyDeletedriver.manage().window().maximize();
ReplyDeletethis is not correct java code for maximize browser..
correct code is
Dimension arg0 = null;
driver.manage().window().setSize(arg0);
Thanks it works for me
ReplyDelete