Firefox is not opening maximised

24 views
Skip to first unread message

Lester

unread,
Sep 4, 2015, 11:46:43 PM9/4/15
to Selenium Users
I am running selenium2 (Webdriver) using Python scripts.
When I run the scripts Firefox does not open maximised. It only fills half the screen.
Is there some code that i can include in my script to make Firefox open maximised.
Thanks in advance.

Vaibhav Tripathi

unread,
Sep 5, 2015, 5:23:01 AM9/5/15
to seleniu...@googlegroups.com
You can use as below:

driver = webdriver.Firefox()

driver.maximize_window()


-Vaibhav

--
You received this message because you are subscribed to the Google Groups "Selenium Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to selenium-user...@googlegroups.com.
To post to this group, send email to seleniu...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/selenium-users/5e955084-5178-4089-baee-f4b8cf93c978%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

MS

unread,
Sep 5, 2015, 6:13:21 AM9/5/15
to Selenium Users
driver.manage().window().maximize();

Vaibhav Tripathi

unread,
Sep 6, 2015, 4:25:07 AM9/6/15
to seleniu...@googlegroups.com
driver.manage().window().maximize() is not availablee in Selenium python bindings. It is better to use with Java bindings if i am not wrong.

-Vaibhav


--
You received this message because you are subscribed to the Google Groups "Selenium Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to selenium-user...@googlegroups.com.
To post to this group, send email to seleniu...@googlegroups.com.
Reply all
Reply to author
Forward
0 new messages