Hey there! any question in your mind? Ask It Now!.

Popular Categories





Maximize Window in Selenium WebDriver using Python

+2 votes
223 views
asked in Software Testing by tester (1,550 points)
What is the exact sytax to maximize firfox window in selenium webdriver , I am using script in python .

1 Answer

+1 vote
answered by Himanshu Expert (5,940 points)
edited by Himanshu

Its very simple , you just have to use like this.

firefoxProfile = webdriver.FirefoxProfile()

driver = webdriver.Firefox(firefoxProfile)
driver.get(url)
driver.maximize_window()

By This syntax you can maximize your window.

driver.maximize_window()

And you should see tutorial for Selenium with python here.

Enjoy!

Related Questions

+1 vote
1 answer 539 views

Not a Member yet?

Ask to Folks Login

My Account
334 Folks are online
27 members and 307 guest online
Your feedback is highly appreciated