How to maximize/minimize the firefox browser window using Selenium Remote Driver in perl scripting How to maximize/minimize the firefox browser window using Selenium Remote Driver in perl scripting selenium selenium

How to maximize/minimize the firefox browser window using Selenium Remote Driver in perl scripting


Unfortunately, Selenium::Remote::Driver does not provide a maximize method, but other Selenium modules for Perl do.

If you switch to WWW::Selenium, you'll be able to use window_maximize:

use WWW::Selenium;my $sel = WWW::Selenium->new( ... );$sel->start;$sel->open("https://www.google.co.in/");$sel->window_maximize()