Open Urvika-gola opened 2 years ago
you can use the key combination windowskey+d, it will minimize all the windows, but what is the issue it's causing?
That can be done, but I am looking to launch it in minimized mode. Win+d will minimize everything on the screen, I want to avoid this.
Which language binding are you using?
Python.
Is its C# then using system.process you can launch WAD in minimize mode
try this
import subprocess
def startProgram():
SW_MINIMIZE = 6
info = subprocess.STARTUPINFO()
info.dwFlags = subprocess.STARTF_USESHOWWINDOW
info.wShowWindow = SW_MINIMIZE
subprocess.Popen(r'C:\Program Files (x86)\Windows Application Driver\WinAppDriver.exe', startupinfo=info)
startProgram()
is there any argument that can be passed to WinAppDriver.exe while launching such that it opens it in a minimized way?
Note, that I tried this on command prompt and it works fine
start "" /min "C:\Program Files\Windows Application Driver\WinAppDriver.exe"
but, I am using psexec, and the same command, when used with psexec, doesn't work.PsExec.exe -nobanner -accepteula -i 1 \\localhost -u username -p password "start \"\" /min \"C:\Program Files\Windows Application Driver\WinAppDriver.exe\""
So, it would have been altogether easier if there is any argument that WinAppDriver can take while launching it from the command prompt. It will be really helpful, considering WinAppDriver is used for automation (hence programmatically), and since it's related to UI, it would be helpful to open it in a minimized state so that it doesn't hinder UI elements on the screen.
How do you all approach this problem?