Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Open browser window in full screen using Selenium WebDriver with C#

How can I make browser enter to fullscreen mode? Same as pressing F11.

like image 791
Oleg Strokatyy Avatar asked Mar 07 '12 12:03

Oleg Strokatyy


People also ask

How do I open Selenium browser full screen?

Same as pressing F11.

How can you set the browser window to full screen?

On a Windows computer, you can set Google Chrome, Internet Explorer, Microsoft Edge, or Mozilla Firefox to full-screen mode, hiding the toolbars and address bar by pressing the F11 key.


1 Answers

driver.Manage().Window.Maximize(); 

isn't that simple?

like image 165
oleksandr.pidhaynyy Avatar answered Oct 04 '22 12:10

oleksandr.pidhaynyy