microsoft / WinAppDriver

Windows Application Driver
MIT License
3.7k stars 1.4k forks source link

WinAppDriver not support Minimize window #322

Open camillake opened 6 years ago

camillake commented 6 years ago

Will you support the W3C API: /session/{session id}/window/minimize ?

timotiusmargo commented 6 years ago

Hi @camillake,

This is a great point. We didn't come across minimize when we implement our API list. In fact it is still missing from the JSON Wire protocol document we referred during implementation below: https://github.com/SeleniumHQ/selenium/wiki/JsonWireProtocol

That's said, it makes total sense to add this endpoint. For the time being, until we implement the endpoint, you can use Win + Down Arrow + Down Arrow on your application window to minimize it as a workaround. E.g.

using OpenQA.Selenium;
session.Keyboard.PressKey(Keys.Meta + Keys.Down + Keys.Down + Keys.Meta);
camillake commented 6 years ago

@timotiusmargo Thanks for your soon reply.

connected-mhuang commented 4 years ago

@timotiusmargo any update for this feature?

taquion87 commented 3 years ago

@timotiusmargo any update on this? Also, the suggested approach appears to be obsolete. I got a warning telling that Keyboard is obsolete and that ActionBuilder should be used