Hi
In one of my processes that includes SAP automation, I am using a combination of SAP scripting actions and Windows UI automation actions, depending on the availability of the elements.
There is a scenario where I need to check whether a particular element exists. For this, I used the "If window contains UI element" action when SAP scripting was not able to detect the element.
However, in certain cases, after using this action — and sometimes after click activities — the SAP window shrinks automatically, and only the title bar remains visible. Due to this unexpected resizing, subsequent UI clicks fail.
At the moment, I am unable to use the “Maximize window” action after every click, as it is not a practical solution for the overall process.
Could you please suggest if there is a permanent or more stable solution to prevent the SAP window from resizing during UI automation?
This issue is urgent, and your guidance would be highly appreciated.

Report
All responses (
Answers (