How do we maximize a firefox browser using Selenium WebDriver (Selenium 2) with node.js. I am using wd
package for Selenium WebDriver to write the tests. I have tried executing window.resizeTo(1366,768);
usin eval
or execute
but didn't work.
I am using Selenium WebDriver 2.25.0
To maximize browser in Selenium, you need to call the maximize() Selenium command to maximize window interface of the driver class. void maximize() – This method is used to maximize the current browser.
1. Use the maximize() method from WebDriver. Window Interface.
To maximize a window, grab the titlebar and drag it to the top of the screen, or just double-click the titlebar. To maximize a window using the keyboard, hold down the Super key and press ↑ , or press Alt + F10 .
Have you tried :
driver.manage().window().maximize()
Doc
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With