'Maximise a windows application using Robot Framework
I am trying to maximize a desktop application with robot framework. I read somewhere that i could use key combinations Windows + Up Arrow but how do i implement it ? Can someone share the code for it please ?
Solution 1:[1]
You might use the PyAutoGui library for this.
import pyautogui
def maximize_window():
pyautogui.hotkey('win','up')
and import this function as a library to your Robot Framework file.
Maybe pressing F11 (pyautogui.press('f11')) might also work, instead of Windows key + Up.
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
Solution | Source |
---|---|
Solution 1 | A_Wdgnm |