Syed Ali Mesam
Syed Ali Mesam

Reputation: 21

IE full Screen mode using selenium Webdriver

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

Answers (2)

J-Roel
J-Roel

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

Sham
Sham

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

Related Questions