+2 votes
in Software Testing by (1.6k points)
What is the exact sytax to maximize firfox window in selenium webdriver , I am using script in python .

1 Answer

0 votes
by (2.9k points)

Here is the a sample code to maximise firefox window in python.


from selenium import webdriver

driver = webdriver.Firefox()
print driver.get_window_size()

driver.set_window_size(480, 320)
print driver.get_window_size()

print driver.get_window_size()


Also, there is an another way by setting position, If above code won't work for you then, try the code below:

driver.manage().window().setPosition(new Point(-2000, 0));


Not a Member yet?

Ask to Folks Login

My Account

Your feedback is highly appreciated