My program enters data into a desktop application (Microsoft NAV client) from Excel, by copy-pasting.
The system is not extremely fast, and even if I paste a copied data, it still enters data one row at a time. When there is more than 100 rows in the excel sheet, it takes more than 1 minute to complete entering data into NAV.
Ideally, my program needs to wait until data pasting is completed, and then close the application. (I have a click event, that is supposed to click “OK” button, which will close the window)
However, my program just tries to click “OK” button even while the program is still pasting the data.
How could I make it wait? I cannot use Delay activity because I don’t know how long the program takes to finish pasting, and setting a specific delay time is not a good idea.
Also, I cannot use “Element Exists” because when copy-pasting is completed, there is no popup window.