Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Window.FullScreen() should behave the same way as F11 #107

Closed
rpertusio opened this issue Aug 25, 2023 · 3 comments
Closed

Window.FullScreen() should behave the same way as F11 #107

rpertusio opened this issue Aug 25, 2023 · 3 comments
Labels
feedback Feedback, discussion, or question about EdgeDriver

Comments

@rpertusio
Copy link

rpertusio commented Aug 25, 2023

The request:
Please make Window.FullScreen() perform the same action as "F11" (or, alternately, allow access to press F11)

Why?
EdgeDriver.Manage().Window.FullScreen() is rudimentary.

  • It offers no UI (other than an overlay text) to get out of FullScreen mode
  • It goes back to Windowed mode if any action is performed (such as Navigate.GoToURL() will make it come out of Fullscreen mode)

vs.
The F11 key on the keyboard to go 'Full Screen' is elegant.

  • Offers a rich UI (mouse hover to top of window allows tab/URL selection, Minimize/Restore/Close buttons)
  • Stays in fullscreen mode if action is performed (like Navigate.GoToURL()

Thanks!

@rpertusio rpertusio added the feature New feature or request label Aug 25, 2023
@jbakeri4
Copy link

In the interim, why not just programmatically send the key combination to the app?

@rpertusio
Copy link
Author

In the interim, why not just programmatically send the key combination to the app?

Unfortunately, unless I missed something, SendKeys won't send F11 or other function keys to Edge. It will send keys like Tab OK. It doesn't work with Actions or SendKeys. Same for Chrome.

@bwalderman bwalderman added feedback Feedback, discussion, or question about EdgeDriver and removed feature New feature or request labels Dec 15, 2023
@bwalderman
Copy link
Member

The Fullscreen command is working as designed here. The WebDriver spec requires the Fullscreen window command to simulate using Element.fullscreen on the current document: https://w3c.github.io/webdriver/#fullscreen-window

You can exit fullscreen by calling the window Maximize command.

@bwalderman bwalderman closed this as not planned Won't fix, can't repro, duplicate, stale Dec 15, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feedback Feedback, discussion, or question about EdgeDriver
Projects
None yet
Development

No branches or pull requests

3 participants