Reputation: 21
I want to check if Internet Explorer window is in fullscreen mode or not?
I use driver.Manage().Window.Maximize();
It maximizes window only but does not switched to FullScreen view.
Is there any method?
Upvotes: 0
Views: 2510
Reputation: 520
@Sham: that is a unique way to do it... I would recommend this:
driver.Manage().Window().Maximize(); after window braces should be added
Upvotes: 0
Reputation: 840
Selenium web driver do not have the API to achieve the Full screen as per your post. But you can achieve it through send keys method of windows. Try below code.
System.Windows.Forms.SendKeys.SendWait("{F11}");
Upvotes: 2